diff options
author | Sam Truzjan <pxqr.sta@gmail.com> | 2014-02-19 03:12:35 +0400 |
---|---|---|
committer | Sam Truzjan <pxqr.sta@gmail.com> | 2014-02-19 03:12:35 +0400 |
commit | 7b00855cd9e58b4392f59261ccb2dd234bc8bc5f (patch) | |
tree | d6874ae48a34259287b3ca16486d7164f53b9718 /tests/Network/BitTorrent | |
parent | 81b71a4a9f0a6f9fd64de08d2dd22303b169a076 (diff) |
Fix warning
Diffstat (limited to 'tests/Network/BitTorrent')
-rw-r--r-- | tests/Network/BitTorrent/DHT/SessionSpec.hs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/Network/BitTorrent/DHT/SessionSpec.hs b/tests/Network/BitTorrent/DHT/SessionSpec.hs index 3e197875..381aa77d 100644 --- a/tests/Network/BitTorrent/DHT/SessionSpec.hs +++ b/tests/Network/BitTorrent/DHT/SessionSpec.hs | |||
@@ -50,14 +50,14 @@ spec = do | |||
50 | 50 | ||
51 | describe "peer storage" $ do | 51 | describe "peer storage" $ do |
52 | it "should return nodes, if there are no peers" $ property $ \ ih -> do | 52 | it "should return nodes, if there are no peers" $ property $ \ ih -> do |
53 | nodes <- simpleDHT $ do getPeerList ih | 53 | res <- simpleDHT $ do getPeerList ih |
54 | nodes `shouldSatisfy` isLeft | 54 | res `shouldSatisfy` isLeft |
55 | 55 | ||
56 | it "should return peers, if any" $ property $ \ ih addr -> do | 56 | it "should return peers, if any" $ property $ \ ih addr -> do |
57 | peers <- simpleDHT $ do | 57 | res <- simpleDHT $ do |
58 | insertPeer ih addr | 58 | insertPeer ih addr |
59 | getPeerList ih | 59 | getPeerList ih |
60 | peers `shouldSatisfy` isRight | 60 | res `shouldSatisfy` isRight |
61 | 61 | ||
62 | describe "topic storage" $ do | 62 | describe "topic storage" $ do |
63 | return () | 63 | return () |