summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Network/BitTorrent/DHT/MessageSpec.hs5
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 ()