Skip to content

Commit

Permalink
Use correct assert method
Browse files Browse the repository at this point in the history
  • Loading branch information
marcaaron committed Sep 25, 2024
1 parent 2e7ae59 commit 39553be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/tests/LibStuffTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -749,14 +749,14 @@ struct LibStuff : tpunit::TestFixture {
void SRedactSensitiveValuesTest() {
string logValue = R"({"edits":["test1", "test2", "test3"]})";
SRedactSensitiveValues(logValue);
ASSERT_EQUALS(R"({"edits":["REDACTED"]})", logValue);
ASSERT_EQUAL(R"({"edits":["REDACTED"]})", logValue);

logValue = R"({"authToken": "123IMANAUTHTOKEN321"})";
SRedactSensitiveValues(logValue);
ASSERT_EQUALS(R"({"authToken":<REDACTED>})", logValue);
ASSERT_EQUAL(R"({"authToken":<REDACTED>})", logValue);

logValue = R"({"html":"private conversation happens here"})";
SRedactSensitiveValues(logValue);
ASSERT_EQUALS(R"({"html":<REDACTED>})", logValue);
ASSERT_EQUAL(R"({"html":<REDACTED>})", logValue);
}
} __LibStuff;

0 comments on commit 39553be

Please sign in to comment.