Skip to content

Commit b997b31

Browse files
authored
Update TestTRUHealthStatusTracker.cpp
1 parent 83f47c7 commit b997b31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/v2i-hub/TelematicBridgePlugin/test/TestTRUHealthStatusTracker.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ TEST_F(TestTRUHealthStatusTracker, UpdateRsuStatus_UpdateExisting)
5454
tracker->updateRsuStatus(rsuInitial);
5555

5656
// Update the same RSU with different status
57-
RSUHealthStatusMessage rsuUpdated("192.168.1.1", 161, "maintenance", "maintenance");
57+
RSUHealthStatusMessage rsuUpdated("192.168.1.1", 161, "fault", "maintenance");
5858
tracker->updateRsuStatus(rsuUpdated);
5959

6060
auto snapshot = tracker->getSnapshot();
6161

6262
// Should still have only one RSU (updated, not added)
6363
ASSERT_EQ(1, snapshot.getRsuHealthStatus().size());
64-
EXPECT_EQ("operate", snapshot.getRsuHealthStatus()[0].getStatus());
64+
EXPECT_EQ("fault", snapshot.getRsuHealthStatus()[0].getStatus());
6565
EXPECT_EQ("maintenance", snapshot.getRsuHealthStatus()[0].toJson()["event"].asString());
6666
}
6767

0 commit comments

Comments
 (0)