Skip to content

Commit d9fba22

Browse files
committed
Reduced number of threads in test
1 parent eaa2270 commit d9fba22

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/TestSuite.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,11 @@ testParallelizingTasks = assert $ do
169169
a <- actual
170170
let ids = map fromIdNumber a
171171
vals = map fromResult a
172-
return $ (sort ids == [1, 2, 3]) &&
173-
(sort vals == ["A", "B", "C"])
172+
return $ (sort ids == [1, 2]) &&
173+
(sort vals == ["A", "B"])
174174
where actual = (fromJust . fromByteString . fromJust) <$> (flip (callWithBatchStrategy parallelize) input =<< methods)
175-
input = encode [ lockRequest 1, lockRequest 2, unlockRequest (String "A")
176-
, unlockRequest (String "B"), unlockRequest (String "C"), lockRequest 3]
175+
input = encode [ lockRequest 1, unlockRequest (String "A")
176+
, unlockRequest (String "B"), lockRequest 2]
177177
lockRequest i = TestRequest "lock" Nothing (Just $ IdNumber i)
178178
unlockRequest str = TestRequest "unlock" (Just $ Right $ V.fromList [str]) Nothing
179179
methods = createMethods <$> newEmptyMVar

0 commit comments

Comments
 (0)