Skip to content

Commit

Permalink
[tests] ConnectionTimeout.Nonblocking 500ms -> 300ms.
Browse files Browse the repository at this point in the history
Previously TTL was checked only every 250 ms, which resulted in a poor timeout precision.
  • Loading branch information
maxsharabayko committed May 12, 2021
1 parent 917a715 commit 8774645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_connection_timeout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ TEST_F(TestConnectionTimeout, Nonblocking) {
EXPECT_EQ(conn_timeout, 3000);

// Set connection timeout to 500 ms to reduce the test execution time
const int connection_timeout_ms = 500;
const int connection_timeout_ms = 300;
EXPECT_EQ(srt_setsockopt(client_sock, 0, SRTO_CONNTIMEO, &connection_timeout_ms, sizeof connection_timeout_ms), SRT_SUCCESS);

const int yes = 1;
Expand Down

0 comments on commit 8774645

Please sign in to comment.