Skip to content

Commit f57092f

Browse files
committed
default to 10s timeout in unit tests
this makes the conn object in unit tests default to a 10s timeout in order to fail fast if something is up with the connection or configured hosts.
1 parent 83dc690 commit f57092f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/test_connection.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class ConnectionTest : public ::testing::Test
2222
virtual void SetUp()
2323
{
2424
conn = new RestClient::Connection("https://httpbin.org");
25+
conn->SetTimeout(10);
2526
}
2627

2728
virtual void TearDown()

0 commit comments

Comments
 (0)