summaryrefslogtreecommitdiff
path: root/tests/Network/BitTorrent/DHT/SessionSpec.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Network/BitTorrent/DHT/SessionSpec.hs')
-rw-r--r--tests/Network/BitTorrent/DHT/SessionSpec.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/Network/BitTorrent/DHT/SessionSpec.hs b/tests/Network/BitTorrent/DHT/SessionSpec.hs
index 8c536352..ef844b31 100644
--- a/tests/Network/BitTorrent/DHT/SessionSpec.hs
+++ b/tests/Network/BitTorrent/DHT/SessionSpec.hs
@@ -26,7 +26,7 @@ myAddr = "127.0.0.1:60000"
26 26
27simpleDHT :: DHT IPv4 a -> IO a 27simpleDHT :: DHT IPv4 a -> IO a
28simpleDHT m = 28simpleDHT m =
29 bracket (newNode defaultHandlers def myAddr nullLogger) closeNode $ \ node -> 29 bracket (newNode defaultHandlers def myAddr nullLogger Nothing) closeNode $ \ node ->
30 runDHT node m 30 runDHT node m
31 31
32isRight :: Either a b -> Bool 32isRight :: Either a b -> Bool
@@ -43,7 +43,7 @@ spec :: Spec
43spec = do 43spec = do
44 describe "session" $ do 44 describe "session" $ do
45 it "is active until closeNode called" $ do 45 it "is active until closeNode called" $ do
46 node <- newNode [] def myAddr nullLogger 46 node <- newNode [] def myAddr nullLogger Nothing
47 runDHT node monadActive `shouldReturn` True 47 runDHT node monadActive `shouldReturn` True
48 runDHT node monadActive `shouldReturn` True 48 runDHT node monadActive `shouldReturn` True
49 closeNode node 49 closeNode node
@@ -106,4 +106,4 @@ spec = do
106 106
107 describe "(<@>) operator" $ do 107 describe "(<@>) operator" $ do
108 it "" $ 108 it "" $
109 pending \ No newline at end of file 109 pending