Skip to content

Commit d7d2e22

Browse files
author
Paweł Andruszkiewicz
committed
Fix Rest_service_test
Decrease the timeouts to make it pass on newer versions of curl. Change-Id: Id10cb5b09a22f97a4be4f45836b95709fefecccd (cherry picked from commit c16fd628014277a677d727476183a46b5cfc8e36)
1 parent fce2743 commit d7d2e22

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

unittest/mysqlshdk/libs/rest/rest_service_t.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ TEST_F(Rest_service_test, timeout) {
666666
FAIL_IF_NO_SERVER
667667

668668
// reduce the timeout
669-
m_service.set_timeout(1999, 1, 2);
669+
m_service.set_timeout(1000, 1, 1);
670670

671671
auto request = Request("/timeout/2.1");
672672

@@ -687,17 +687,17 @@ TEST_F(Rest_service_test, timeout) {
687687
EXPECT_THROW_LIKE(
688688
m_service.get(&request), Connection_error,
689689
"Operation too slow. Less than 1 bytes/sec transferred the "
690-
"last 2 seconds");
690+
"last 1 seconds");
691691

692692
EXPECT_THROW_LIKE(
693693
m_service.put(&request), Connection_error,
694694
"Operation too slow. Less than 1 bytes/sec transferred the "
695-
"last 2 seconds");
695+
"last 1 seconds");
696696

697697
EXPECT_THROW_LIKE(
698698
m_service.post(&request), Connection_error,
699699
"Operation too slow. Less than 1 bytes/sec transferred the "
700-
"last 2 seconds");
700+
"last 1 seconds");
701701
}
702702

703703
// increase the timeout

0 commit comments

Comments
 (0)