Skip to content

Commit 008ad4c

Browse files
committed
[tests]: fix compile test issue
Add corresponding field in test_routesync.cpp Signed-off-by: Yuqing Zhao <[email protected]>
1 parent 68b6535 commit 008ad4c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/mock_tests/fpmsyncd/test_routesync.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -831,14 +831,16 @@ TEST_F(FpmSyncdResponseTest, TestRouteMsgWithNHG)
831831

832832
vector<FieldValueTuple> fvs;
833833
EXPECT_TRUE(route_table.get(test_destipprefix, fvs));
834-
EXPECT_EQ(fvs.size(), 3);
834+
EXPECT_EQ(fvs.size(), 4);
835835
for (const auto& fv : fvs) {
836836
if (fvField(fv) == "nexthop") {
837837
EXPECT_EQ(fvValue(fv), test_gateway);
838838
} else if (fvField(fv) == "ifname") {
839839
EXPECT_EQ(fvValue(fv), "Ethernet1");
840840
} else if (fvField(fv) == "protocol") {
841841
EXPECT_EQ(fvValue(fv), "static");
842+
} else if (fvField(fv) == "nexthop_group") {
843+
EXPECT_EQ(fvValue(fv), "na");
842844
}
843845
}
844846
}

0 commit comments

Comments
 (0)