diff options
author | Mateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk> | 2014-08-01 23:08:12 +0200 |
---|---|---|
committer | Mateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk> | 2014-08-01 23:08:12 +0200 |
commit | d2c9ef1c2f7acd27ab6fac9b80f6590bf0d505b9 (patch) | |
tree | 78cca4266f5f69124859b5c75059e7b45594338c /tests/Network/BitTorrent/DHT/MessageSpec.hs | |
parent | e79cb26162711b9b491bc56f174235238c3779b7 (diff) |
Manually specify which instance to use
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 () |