Skip to content

Commit 4027a09

Browse files
committed
Test for is in remote control only on PolyScope 5
1 parent 58688ba commit 4027a09

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test_dashboard_client_g5.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -553,16 +553,16 @@ TEST_F(DashboardClientTestG5, operational_mode)
553553
return std::get<std::string>(response.data["operational_mode"]) == "NONE";
554554
},
555555
std::chrono::milliseconds(500)));
556+
response = dashboard_client_->commandIsInRemoteControl();
557+
ASSERT_TRUE(response.ok);
558+
ASSERT_FALSE(std::get<bool>(response.data["remote_control"]));
556559
}
557560
else
558561
{
559562
EXPECT_THROW(response = dashboard_client_->commandGetOperationalMode(), UrException);
560563
EXPECT_THROW(response = dashboard_client_->commandSetOperationalMode("NONE"), UrException);
564+
EXPECT_THROW(response = dashboard_client_->commandIsInRemoteControl(), UrException);
561565
}
562-
563-
response = dashboard_client_->commandIsInRemoteControl();
564-
ASSERT_TRUE(response.ok);
565-
ASSERT_FALSE(std::get<bool>(response.data["remote_control"]));
566566
}
567567

568568
TEST_F(DashboardClientTestG5, test_disconnect)
@@ -627,4 +627,4 @@ int main(int argc, char* argv[])
627627
}
628628

629629
return RUN_ALL_TESTS();
630-
}
630+
}

0 commit comments

Comments
 (0)