Skip to content

Commit

Permalink
Issue #13: adds a note why 'after AllFinish' is used in testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Marko Dimjašević committed Oct 14, 2019
1 parent bdd1bad commit 7c62315
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ tests :: TestTree
tests = testGroup "All tests"
[ types
, rules
-- 'after' is needed to avoid running the 'rules' and 'server' tests
-- concurrently. Running them concurrently is problematic because
-- both create a server (binding the same port) so if they create it
-- at the same time, one of the test groups will fail. The 'after'
-- function makes 'server' tests run after 'rules' tests.
, after AllFinish "test_rules" server
]

Expand Down

0 comments on commit 7c62315

Please sign in to comment.