diff options
author | Sam Truzjan <pxqr.sta@gmail.com> | 2014-08-03 13:10:31 +0400 |
---|---|---|
committer | Sam Truzjan <pxqr.sta@gmail.com> | 2014-08-03 13:10:31 +0400 |
commit | e569586521be76e0f02137e01af9375d327d461c (patch) | |
tree | a884ed66706a1dcf4c417f9d9f7d4d5b2ba3db40 /tests/Network/BitTorrent/DHT/MessageSpec.hs | |
parent | 89324a02146af6e96f0cdff41ffa36ded1be487d (diff) | |
parent | d2c9ef1c2f7acd27ab6fac9b80f6590bf0d505b9 (diff) |
Merge pull request #8 from Fuuzetsu/7.8.3-fixes
7.8.3 fixes
Diffstat (limited to 'tests/Network/BitTorrent/DHT/MessageSpec.hs')
-rw-r--r-- | tests/Network/BitTorrent/DHT/MessageSpec.hs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/Network/BitTorrent/DHT/MessageSpec.hs b/tests/Network/BitTorrent/DHT/MessageSpec.hs index ab6e1ea5..ae9ab487 100644 --- a/tests/Network/BitTorrent/DHT/MessageSpec.hs +++ b/tests/Network/BitTorrent/DHT/MessageSpec.hs | |||
@@ -203,6 +203,9 @@ spec = do | |||
203 | Response _ GotPeers {..} <- query remoteAddr (Query nid (GetPeers def)) | 203 | Response _ GotPeers {..} <- query remoteAddr (Query nid (GetPeers def)) |
204 | let _ = peers :: Either [NodeInfo IPv4] [PeerAddr IPv4] | 204 | let _ = peers :: Either [NodeInfo IPv4] [PeerAddr IPv4] |
205 | let invalidToken = "" | 205 | let invalidToken = "" |
206 | query remoteAddr (Query nid (Announce False def thisPort invalidToken))) | 206 | let q :: MonadKRPC h m => SockAddr -> Query Announce |
207 | -> m (Response Announced) | ||
208 | q = query | ||
209 | q remoteAddr (Query nid (Announce False def thisPort invalidToken))) | ||
207 | `shouldThrow` isQueryError | 210 | `shouldThrow` isQueryError |
208 | return () | 211 | return () |