]> infiniteadaptability.org Git - seeder/commitdiff
...
authoralex <[email protected]>
Sat, 23 Jul 2022 17:19:02 +0000 (10:19 -0700)
committeralex <[email protected]>
Sat, 23 Jul 2022 17:19:02 +0000 (10:19 -0700)
test/integration/qbittorrent.tests.c

index 0e1b34000cd28ee9116630a4d5f0e7e460ec5e48..a51fe5432e6ff2011a6d6386522dc6378c891901 100644 (file)
@@ -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);
 }