diff options
author | Sam Truzjan <pxqr.sta@gmail.com> | 2014-02-08 04:02:17 +0400 |
---|---|---|
committer | Sam Truzjan <pxqr.sta@gmail.com> | 2014-02-08 04:02:17 +0400 |
commit | 0a0d09bca9b312de72b4ca57904fae3a7f423e4b (patch) | |
tree | 2dfe5b323397da9d9e44357ed616ed539dd3c72d /tests/Network/BitTorrent/Tracker | |
parent | 87da9eff1ce81b93de5bbd5af13643c4abbe6d05 (diff) |
Allow empty tracker list
Diffstat (limited to 'tests/Network/BitTorrent/Tracker')
-rw-r--r-- | tests/Network/BitTorrent/Tracker/ListSpec.hs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/Network/BitTorrent/Tracker/ListSpec.hs b/tests/Network/BitTorrent/Tracker/ListSpec.hs index 8decd3c9..03379136 100644 --- a/tests/Network/BitTorrent/Tracker/ListSpec.hs +++ b/tests/Network/BitTorrent/Tracker/ListSpec.hs | |||
@@ -18,14 +18,11 @@ uris = fmap (fromJust . parseURI . renderURI) [1..10 :: Int] | |||
18 | renderURI n = "http://" ++ show n ++ ".org" | 18 | renderURI n = "http://" ++ show n ++ ".org" |
19 | 19 | ||
20 | list :: TrackerList URI | 20 | list :: TrackerList URI |
21 | list = fromJust $ trackerList def { tAnnounceList = Just [uris] } | 21 | list = trackerList def { tAnnounceList = Just [uris] } |
22 | 22 | ||
23 | spec :: Spec | 23 | spec :: Spec |
24 | spec = do | 24 | spec = do |
25 | describe "TrackerList" $ do | 25 | describe "TrackerList" $ do |
26 | it "trackerList is not empty" $ do | ||
27 | pending | ||
28 | |||
29 | it "shuffleTiers (may fail with very small probability)" $ do | 26 | it "shuffleTiers (may fail with very small probability)" $ do |
30 | list' <- shuffleTiers list | 27 | list' <- shuffleTiers list |
31 | list' `shouldSatisfy` (/= list) | 28 | list' `shouldSatisfy` (/= list) |