Skip to content

Commit

Permalink
Update unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Jan 15, 2025
1 parent db59a9f commit 81a8959
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cpp/test/s2pctl_display_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,10 @@ TEST(S2pCtlDisplayTest, DisplayPropertiesInfo)
S2pCtlDisplay display;
PbPropertiesInfo info;

const string s = display.DisplayPropertiesInfo(info);
EXPECT_FALSE(s.empty());
(*info.mutable_s2p_properties())["key"] = "value";
const string &s = display.DisplayPropertiesInfo(info);
EXPECT_NE(string::npos, s.find("s2p properties"));
EXPECT_NE(string::npos, s.find("key=value"));
}

TEST(S2pCtlDisplayTest, DisplayOperationInfo)
Expand Down

0 comments on commit 81a8959

Please sign in to comment.