summaryrefslogtreecommitdiff
path: root/tests/Network/BitTorrent/Tracker/RPC/UDPSpec.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Network/BitTorrent/Tracker/RPC/UDPSpec.hs')
-rw-r--r--tests/Network/BitTorrent/Tracker/RPC/UDPSpec.hs10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/Network/BitTorrent/Tracker/RPC/UDPSpec.hs b/tests/Network/BitTorrent/Tracker/RPC/UDPSpec.hs
index e46f15b6..f3dcec88 100644
--- a/tests/Network/BitTorrent/Tracker/RPC/UDPSpec.hs
+++ b/tests/Network/BitTorrent/Tracker/RPC/UDPSpec.hs
@@ -24,10 +24,12 @@ spec = do
24 context (show uri) $ do 24 context (show uri) $ do
25 describe "announce" $ do 25 describe "announce" $ do
26 it "have valid response" $ do 26 it "have valid response" $ do
27 q <- arbitrarySample 27 withManager def $ \ mgr -> do
28 connect uri >>= announce q >>= validateInfo q 28 q <- arbitrarySample
29 announce mgr uri q >>= validateInfo q
29 30
30 describe "scrape" $ do 31 describe "scrape" $ do
31 it "have valid response" $ do 32 it "have valid response" $ do
32 xs <- connect uri >>= scrape [def] 33 withManager def $ \ mgr -> do
33 L.length xs `shouldSatisfy` (>= 1) 34 xs <- scrape mgr uri [def]
35 L.length xs `shouldSatisfy` (>= 1)