refactor: stable mgmt

This commit is contained in:
Shengliang Guan 2022-07-01 15:26:33 +08:00
parent 4810e25a44
commit 0cbc22480d
1 changed files with 2 additions and 2 deletions

View File

@ -372,7 +372,7 @@ TEST_F(ParserInitialCTest, createStable) {
expect.watermark2 = watermark2; expect.watermark2 = watermark2;
// expect.ttl = ttl; // expect.ttl = ttl;
if (nullptr != pComment) { if (nullptr != pComment) {
expect.comment = strdup(pComment); expect.pComment = strdup(pComment);
expect.commentLen = strlen(pComment); expect.commentLen = strlen(pComment);
} }
}; };
@ -443,7 +443,7 @@ TEST_F(ParserInitialCTest, createStable) {
} }
} }
if (expect.commentLen > 0) { if (expect.commentLen > 0) {
ASSERT_EQ(std::string(req.comment), std::string(expect.comment)); ASSERT_EQ(std::string(req.pComment), std::string(expect.pComment));
} }
if (expect.ast1Len > 0) { if (expect.ast1Len > 0) {
ASSERT_EQ(std::string(req.pAst1), std::string(expect.pAst1)); ASSERT_EQ(std::string(req.pAst1), std::string(expect.pAst1));