This commit is contained in:
voidlizard 2025-08-14 10:03:54 +03:00
parent 59e9f8a718
commit 548828e47f
2 changed files with 13 additions and 5 deletions

View File

@ -104,6 +104,12 @@ ncqTossBlock :: MonadUnliftIO m
ncqTossBlock sto lbs = ncqPutBlock0 sto lbs False
{-# INLINE ncqTossBlock #-}
-- FIXME: ncqLocate-slows-write
-- FIXME: resources-exhausted
-- test-ncq debug off and test:root temp and test:dir:keep and test:ncq3:merkle:file ./f10g
-- test-ncq: openAnonymousTempFileFromDir:
-- resource exhausted (Too many open files)
ncqPutBlock0 :: MonadUnliftIO m
=> NCQStorage
-> LBS.ByteString

View File

@ -608,13 +608,15 @@ ncq3Tests = do
hashes <- forConcurrently chu $ \chunk -> do
ncqTossBlock ncq chunk >>= orThrowUser "can't save"
-- FIXME: handle-hardcode
let pt = toPTree (MaxSize 1024) (MaxNum 256) hashes -- FIXME: settings
none
m <- makeMerkle 0 pt $ \(_,_,bss) -> liftIO do
void $ ncqPutBlock ncq bss >>= orThrowUser "can't save"
-- -- FIXME: handle-hardcode
-- let pt = toPTree (MaxSize 1024) (MaxNum 256) hashes -- FIXME: settings
notice $ pretty m
-- m <- makeMerkle 0 pt $ \(_,_,bss) -> liftIO do
-- void $ ncqPutBlock ncq bss >>= orThrowUser "can't save"
-- notice $ pretty m
entry $ bindMatch "test:ncq3:merkle" $ nil_ $ \e -> runTest $ \TestEnv{..} -> do