test: enusre arc roundtrips

This commit is contained in:
Gregor Kleen 2021-02-11 08:53:09 +01:00
parent 5794ca384c
commit ef7a743c60

View File

@ -42,6 +42,7 @@ spec = withApp . describe "File handling" $ do
suppliedContent <- runConduit $ transPipe generalize fileContentContent suppliedContent <- runConduit $ transPipe generalize fileContentContent
.| C.sinkLazy .| C.sinkLazy
for_ [1..10] $ \_i -> do
readContent <- runConduit $ sourceFileMinio fileReferenceContentContent readContent <- runConduit $ sourceFileMinio fileReferenceContentContent
.| C.takeE (succ $ olength suppliedContent) .| C.takeE (succ $ olength suppliedContent)
.| C.sinkLazy .| C.sinkLazy
@ -61,6 +62,7 @@ spec = withApp . describe "File handling" $ do
suppliedContent <- runConduit $ transPipe generalize fileContentContent suppliedContent <- runConduit $ transPipe generalize fileContentContent
.| C.sinkLazy .| C.sinkLazy
for_ [1..10] $ \_i -> do
readContent <- runDB . runConduit readContent <- runDB . runConduit
$ sourceFileDB fRef' $ sourceFileDB fRef'
.| C.takeE (succ $ olength suppliedContent) .| C.takeE (succ $ olength suppliedContent)