From debbfd803a94ff3458a9ae98e24c74ddf6ce0f33 Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 23 Jul 2022 10:19:02 -0700 Subject: [PATCH] ... --- test/integration/qbittorrent.tests.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/integration/qbittorrent.tests.c b/test/integration/qbittorrent.tests.c index 0e1b340..a51fe54 100644 --- a/test/integration/qbittorrent.tests.c +++ b/test/integration/qbittorrent.tests.c @@ -36,7 +36,9 @@ void qbittorrent_integration_test() { info->sock = socket(res->ai_family,res->ai_socktype,res->ai_protocol); assert(info->sock>0); - assert(0==connect(info->sock,res->ai_addr,res->ai_addrlen)); + if(0!=connect(info->sock,res->ai_addr,res->ai_addrlen)) { + exit(77); + } assert(1==session_setup()); memcpy(info->infohash,infohash,PEER_INFOHASH_SIZE); @@ -44,8 +46,6 @@ void qbittorrent_integration_test() { assert(1==peer_handshake(info)); assert(1==peer_handshake_received(info)); - assert(1==peer_bitfield(info)); - close(info->sock); peer_free(info); } -- 2.30.2