From: alex Date: Sat, 23 Jul 2022 17:19:02 +0000 (-0700) Subject: ... X-Git-Url: http://git.infiniteadaptability.org/?a=commitdiff_plain;h=debbfd803a94ff3458a9ae98e24c74ddf6ce0f33;p=seeder ... --- 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); }