diff options
author | Mateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk> | 2014-08-02 00:34:30 +0200 |
---|---|---|
committer | Mateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk> | 2014-08-02 00:52:31 +0200 |
commit | 8c06c997e2072c23db4273cdd000b39de8b70035 (patch) | |
tree | c49c69e49169cb2783743ca40772d4bc6278d811 /tests/Network/BitTorrent/Tracker | |
parent | c503cd761c21ad2c7d1ff2d2fe7595ad965ab4aa (diff) |
Fix some trivial UDPSpec failures
Diffstat (limited to 'tests/Network/BitTorrent/Tracker')
-rw-r--r-- | tests/Network/BitTorrent/Tracker/RPC/UDPSpec.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Network/BitTorrent/Tracker/RPC/UDPSpec.hs b/tests/Network/BitTorrent/Tracker/RPC/UDPSpec.hs index 1ec3bdb7..3a3dddf5 100644 --- a/tests/Network/BitTorrent/Tracker/RPC/UDPSpec.hs +++ b/tests/Network/BitTorrent/Tracker/RPC/UDPSpec.hs | |||
@@ -67,7 +67,7 @@ spec = parallel $ do | |||
67 | let opts = def { optMinTimeout = 2, optMaxTimeout = 1 } | 67 | let opts = def { optMinTimeout = 2, optMaxTimeout = 1 } |
68 | newManager opts `shouldThrow` isSomeException | 68 | newManager opts `shouldThrow` isSomeException |
69 | 69 | ||
70 | it "should throw exception on optMultiplier" $ do | 70 | it "should throw exception on zero optMultiplier" $ do |
71 | let opts = def { optMultiplier = 0 } | 71 | let opts = def { optMultiplier = 0 } |
72 | newManager opts `shouldThrow` isSomeException | 72 | newManager opts `shouldThrow` isSomeException |
73 | 73 | ||
@@ -141,4 +141,4 @@ spec = parallel $ do | |||
141 | it "should handle arbitrary intermixed concurrent queries" $ do | 141 | it "should handle arbitrary intermixed concurrent queries" $ do |
142 | withManager rpcOpts $ \ mgr -> do | 142 | withManager rpcOpts $ \ mgr -> do |
143 | _ <- mapConcurrently (\ _ -> scrape mgr trackerURI [def]) [1..rpcCount] | 143 | _ <- mapConcurrently (\ _ -> scrape mgr trackerURI [def]) [1..rpcCount] |
144 | return () \ No newline at end of file | 144 | return () |