diff options
Diffstat (limited to 'tests/Network/BitTorrent/DHTSpec.hs')
-rw-r--r-- | tests/Network/BitTorrent/DHTSpec.hs | 4 |
1 files changed, 1 insertions, 3 deletions
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 |