Skip to content

Commit

Permalink
tests: Check for correct number of packets in multistream tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jrsnen committed Sep 11, 2024
1 parent f974e2d commit 8406a6f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_5_srtp_zrtp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,8 @@ TEST(EncryptionTests, zrtp_multistream)
receiver_thread2->join();
}

std::cout << received_packets << " / 30 packets received" << std::endl;
EXPECT_TRUE(received_packets > 25);
std::cout << received_packets << " / 20 packets received" << std::endl;
EXPECT_TRUE(received_packets == 20);

cleanup_sess(ctx, sender_session);
cleanup_sess(ctx, receiver_session);
Expand Down Expand Up @@ -364,8 +364,8 @@ TEST(EncryptionTests, zrtp_multistream_ip6)
}


std::cout << received_packets << " / 30 packets received" << std::endl;
EXPECT_TRUE(received_packets > 25);
std::cout << received_packets << " / 20 packets received" << std::endl;
EXPECT_TRUE(received_packets == 20);

cleanup_sess(ctx, sender_session);
cleanup_sess(ctx, receiver_session);
Expand Down

0 comments on commit 8406a6f

Please sign in to comment.