summaryrefslogtreecommitdiff
path: root/tests/Network/BitTorrent/DHTSpec.hs
diff options
context:
space:
mode:
authorSam Truzjan <pxqr.sta@gmail.com>2014-02-20 06:25:03 +0400
committerSam Truzjan <pxqr.sta@gmail.com>2014-02-20 06:25:03 +0400
commit2fee3e9d893973b3db7af606e6583d2ccd9d05eb (patch)
tree05ea0dd83d3b791d24806ac987c24e40df253476 /tests/Network/BitTorrent/DHTSpec.hs
parent0f76501d5bdc033fd5b3a821021f2c319ec314da (diff)
Fix some warnings
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