diff --git a/tests/test_dashboard_client.cpp b/tests/test_dashboard_client.cpp index d0798c458..edc35d716 100644 --- a/tests/test_dashboard_client.cpp +++ b/tests/test_dashboard_client.cpp @@ -62,6 +62,12 @@ class DashboardClientTest : public ::testing::Test void SetUp() { dashboard_client_.reset(new TestableDashboardClient(g_ROBOT_IP)); + // In CI we the dashboard client times out for no obvious reason. Hence we increase the timeout + // here. + timeval tv; + tv.tv_sec = 10; + tv.tv_usec = 0; + dashboard_client_->setReceiveTimeout(tv); } void TearDown() @@ -281,4 +287,4 @@ int main(int argc, char* argv[]) } return RUN_ALL_TESTS(); -} +} \ No newline at end of file