Skip to content

Commit

Permalink
Issue #26: Handle faulty configuration (#108)
Browse files Browse the repository at this point in the history
* Support is already here, just add documentation in the code
  • Loading branch information
Marko Dimjašević authored Nov 26, 2019
1 parent 6068fb8 commit bbbcba9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/Fencer/Server/Test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ tests = testGroup "Server tests"
-- | Test that when Fencer is started without any rules provided to it (i.e.
-- 'reloadRules' has never been ran), requests to Fencer will error out.
--
-- This test also corresponds to a case when there is faulty
-- configuration and Fencer loads no rules at startup. In such a case
-- the server responds to requests with an error.
--
-- This behavior matches @lyft/ratelimit@.
test_serverResponseNoRules :: TestTree
test_serverResponseNoRules =
Expand Down

0 comments on commit bbbcba9

Please sign in to comment.