on master help sign in
Fix race condition in a parallel test
commitd1cb4d8695dc38aeec9cae8f2530fb1ad050c540 authorHarendra Kumar <harendra.kumar@gmail.com> dateThu 21 Sep 2017, 00:12 (9 years ago) parente5421a4
1 file changed+3−3
test/Main.hs+3−3
test/Main.hs+3−3
@@ -97,9 +97,9 @@ main = hspec $ do
9797 it "Nest <|>, <>, <|> (2)" $
9898 let t = timed
9999 in toList (
100− ((t 4 <|> t 8) <> (t 0 <|> t 2))
101− <|> ((t 4 <|> t 8) <> (t 0 <|> t 2)))
102− `shouldReturn` ([4,4,8,8,0,0,2,2])
100+ ((t 4 <|> t 8) <> (t 1 <|> t 2))
101+ <|> ((t 4 <|> t 8) <> (t 1 <|> t 2)))
102+ `shouldReturn` ([4,4,8,8,1,1,2,2])
103103 it "Nest <|>, <=>, <|> (1)" $
104104 let t = timed
105105 in toList (