summaryrefslogtreecommitdiff
path: root/tests/Network/BitTorrent/DHTSpec.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Network/BitTorrent/DHTSpec.hs')
-rw-r--r--tests/Network/BitTorrent/DHTSpec.hs4
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
4import Data.Default 4import Data.Default
5import Data.List as L 5import Data.List as L
6import Test.Hspec 6import Test.Hspec
7import Test.QuickCheck
8import System.Timeout 7import System.Timeout
9 8
10import Data.Torrent.InfoHash 9import Data.Torrent.InfoHash
11import Network.BitTorrent.Core
12import Network.BitTorrent.DHT 10import 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