Skip to content

Commit 728e31f

Browse files
committed
Set increased timeout in dashboard client test
The test seems to be flaky with 1s timeout. As we use 10 seconds at other places, as well I guess it wouldn't hurt to use this in the tests.
1 parent 8f7eb20 commit 728e31f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/test_dashboard_client.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ class DashboardClientTest : public ::testing::Test
6262
void SetUp()
6363
{
6464
dashboard_client_.reset(new TestableDashboardClient(g_ROBOT_IP));
65+
// In CI we the dashboard client times out for no obvious reason. Hence we increase the timeout
66+
// here.
67+
timeval tv;
68+
tv.tv_sec = 10;
69+
tv.tv_usec = 0;
70+
dashboard_client_->setReceiveTimeout(tv);
6571
}
6672

6773
void TearDown()
@@ -281,4 +287,4 @@ int main(int argc, char* argv[])
281287
}
282288

283289
return RUN_ALL_TESTS();
284-
}
290+
}

0 commit comments

Comments
 (0)