diff options
author | Sam Truzjan <pxqr.sta@gmail.com> | 2014-02-20 06:25:03 +0400 |
---|---|---|
committer | Sam Truzjan <pxqr.sta@gmail.com> | 2014-02-20 06:25:03 +0400 |
commit | 2fee3e9d893973b3db7af606e6583d2ccd9d05eb (patch) | |
tree | 05ea0dd83d3b791d24806ac987c24e40df253476 /tests/Network | |
parent | 0f76501d5bdc033fd5b3a821021f2c319ec314da (diff) |
Fix some warnings
Diffstat (limited to 'tests/Network')
-rw-r--r-- | tests/Network/BitTorrent/DHT/SessionSpec.hs | 2 | ||||
-rw-r--r-- | tests/Network/BitTorrent/DHTSpec.hs | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/tests/Network/BitTorrent/DHT/SessionSpec.hs b/tests/Network/BitTorrent/DHT/SessionSpec.hs index c936dd1b..41852763 100644 --- a/tests/Network/BitTorrent/DHT/SessionSpec.hs +++ b/tests/Network/BitTorrent/DHT/SessionSpec.hs | |||
@@ -64,7 +64,7 @@ spec = do | |||
64 | property $ \ (nid :: NodeId) -> do | 64 | property $ \ (nid :: NodeId) -> do |
65 | let info = NodeInfo nid myAddr | 65 | let info = NodeInfo nid myAddr |
66 | closest <- simpleDHT $ do | 66 | closest <- simpleDHT $ do |
67 | insertNode info | 67 | _ <- insertNode info |
68 | liftIO $ yield | 68 | liftIO $ yield |
69 | getClosest nid | 69 | getClosest nid |
70 | closest `shouldSatisfy` L.elem info | 70 | closest `shouldSatisfy` L.elem info |
diff --git a/tests/Network/BitTorrent/DHTSpec.hs b/tests/Network/BitTorrent/DHTSpec.hs index a8248be2..76b48257 100644 --- a/tests/Network/BitTorrent/DHTSpec.hs +++ b/tests/Network/BitTorrent/DHTSpec.hs | |||
@@ -4,11 +4,9 @@ import Control.Monad | |||
4 | import Data.Default | 4 | import Data.Default |
5 | import Data.List as L | 5 | import Data.List as L |
6 | import Test.Hspec | 6 | import Test.Hspec |
7 | import Test.QuickCheck | ||
8 | import System.Timeout | 7 | import System.Timeout |
9 | 8 | ||
10 | import Data.Torrent.InfoHash | 9 | import Data.Torrent.InfoHash |
11 | import Network.BitTorrent.Core | ||
12 | import Network.BitTorrent.DHT | 10 | import Network.BitTorrent.DHT |
13 | 11 | ||
14 | 12 | ||
@@ -38,7 +36,7 @@ spec = do | |||
38 | it "partial bootstrapping should finish in less than 10 seconds" $ do | 36 | it "partial bootstrapping should finish in less than 10 seconds" $ do |
39 | node <- resolveHostName (L.head defaultBootstrapNodes) | 37 | node <- resolveHostName (L.head defaultBootstrapNodes) |
40 | res <- timeout partialBootstrapTimeout $ do | 38 | res <- timeout partialBootstrapTimeout $ do |
41 | dht def def $ do | 39 | dht opts def $ do |
42 | bootstrap [node] | 40 | bootstrap [node] |
43 | isBootstrapped | 41 | isBootstrapped |
44 | res `shouldBe` Just True | 42 | res `shouldBe` Just True |