Skip to content

Commit c0f5c83

Browse files
committed
fix tests: fix LoggingTest.Format
commit_hash:28c973487496dcc344d974a381bee1a015392de7
1 parent b26d742 commit c0f5c83

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

core/src/logging/log_test.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,14 @@ TEST_F(LoggingTest, LogRaw) {
156156
EXPECT_EQ(GetStreamString(), "foo\n");
157157
}
158158

159-
UTEST_F(SocketLoggingTest, Format) {
159+
TEST_F(LoggingTest, Format) {
160160
LOG_ERROR("Hello, {}", "world");
161-
EXPECT_EQ("Hello, world", NextLoggedText());
161+
EXPECT_EQ("Hello, world", LoggedText());
162+
ClearLog();
162163

163164
LOG_ERROR("{}, {}", "Hello", "world");
164-
EXPECT_EQ("Hello, world", NextLoggedText());
165+
EXPECT_EQ("Hello, world", LoggedText());
166+
ClearLog();
165167
}
166168

167169
USERVER_NAMESPACE_END

0 commit comments

Comments
 (0)