2525
2626{-# OPTIONS_GHC -Wno-orphans #-}
2727
28+ {- HLINT ignore "Evaluate" -}
2829{- HLINT ignore "Use camelCase" -}
2930{- HLINT ignore "Redundant fmap" -}
3031
@@ -179,6 +180,10 @@ propLockstep_ModelIOImpl =
179180
180181instance Arbitrary R. TableConfig where
181182 arbitrary = do
183+ confMergeSchedule <- QC. frequency [
184+ (1 , pure R. OneShot )
185+ , (4 , pure R. Incremental )
186+ ]
182187 confWriteBufferAlloc <- QC. arbitrary
183188 pure $ R. TableConfig {
184189 R. confMergePolicy = R. MergePolicyLazyLevelling
@@ -187,7 +192,7 @@ instance Arbitrary R.TableConfig where
187192 , R. confBloomFilterAlloc = R. AllocFixed 10
188193 , R. confFencePointerIndex = R. CompactIndex
189194 , R. confDiskCachePolicy = R. DiskCacheNone
190- , R. confMergeSchedule = R. OneShot
195+ , confMergeSchedule
191196 }
192197
193198 shrink R. TableConfig {.. } =
@@ -950,7 +955,9 @@ runIO ::
950955runIO action lookUp = ReaderT $ \ (session, handler) -> do
951956 x <- aux (unwrapSession session) handler action
952957 case session of
953- WrapSession sesh -> assertNoThunks sesh $ pure ()
958+ WrapSession sesh ->
959+ -- TODO: Re-enable NoThunks assertions. See lsm-tree#444.
960+ const id (assertNoThunks sesh) $ pure ()
954961 pure x
955962 where
956963 aux ::
0 commit comments