Skip to content

Commit 3b346d1

Browse files
committed
Add test for uninitialized client
1 parent 7267565 commit 3b346d1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_primary_client.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ TEST_F(PrimaryClientTest, test_power_cycle_commands)
103103
EXPECT_EQ(client_->getRobotMode(), RobotMode::POWER_OFF);
104104
}
105105

106+
TEST_F(PrimaryClientTest, test_uninitialized_primary_client)
107+
{
108+
// The client is not started yet, so the robot mode should be UNKNOWN
109+
ASSERT_EQ(client_->getRobotMode(), RobotMode::UNKNOWN);
110+
}
111+
106112
int main(int argc, char* argv[])
107113
{
108114
::testing::InitGoogleTest(&argc, argv);

0 commit comments

Comments
 (0)