Skip to content

Commit b0aa17d

Browse files
committed
fix testLogging for latest oxen-logging
1 parent 1d05999 commit b0aa17d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/test_logging.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,15 @@ TEST_CASE("Logging callbacks", "[logging]") {
7777
REQUIRE(simple_logs.size() == 2);
7878
REQUIRE(full_logs.size() == 2);
7979
CHECK(fixup_log(simple_logs[0]) ==
80-
"[<timestamp>] [<reltime>] [test.a:critical|test_logging.cpp:{}] abc 42\n"_format(line0));
80+
"[<timestamp>] [<reltime>] [test.a:critical|tests/test_logging.cpp:{}] abc 42\n"_format(
81+
line0));
8182
CHECK(fixup_log(simple_logs[1]) ==
82-
"[<timestamp>] [<reltime>] [test.b:info|test_logging.cpp:{}] hi\n"_format(line1));
83+
"[<timestamp>] [<reltime>] [test.b:info|tests/test_logging.cpp:{}] hi\n"_format(line1));
8384
CHECK(fixup_log(full_logs[0]) ==
84-
"test.a|critical|[<timestamp>] [<reltime>] [test.a:critical|test_logging.cpp:{}] abc 42\n"_format(
85+
"test.a|critical|[<timestamp>] [<reltime>] [test.a:critical|tests/test_logging.cpp:{}] abc 42\n"_format(
8586
line0));
8687
CHECK(fixup_log(full_logs[1]) ==
87-
"test.b|info|[<timestamp>] [<reltime>] [test.b:info|test_logging.cpp:{}] hi\n"_format(
88+
"test.b|info|[<timestamp>] [<reltime>] [test.b:info|tests/test_logging.cpp:{}] hi\n"_format(
8889
line1));
8990
}
9091

0 commit comments

Comments
 (0)