1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Fix context string ID bug

This commit is contained in:
winlin 2020-06-19 08:57:18 +08:00
parent 83ce78a015
commit 7627c290c9
4 changed files with 32 additions and 24 deletions

View file

@ -4106,9 +4106,9 @@ VOID TEST(KernelLogTest, CoverAll)
l.error("TAG", "0", "log");
ISrsThreadContext ctx;
ctx.set_id(10);
EXPECT_EQ("0", ctx.get_id());
EXPECT_EQ("0", ctx.generate_id());
ctx.set_id("10");
EXPECT_EQ("", ctx.get_id());
EXPECT_EQ("", ctx.generate_id());
}
}