fix compile error

This commit is contained in:
Minglei Jin 2024-07-18 08:04:19 +08:00
parent 10dc3b35e0
commit 5e4b7b35a5
1 changed files with 4 additions and 3 deletions

View File

@ -8,9 +8,6 @@
const char* ranStr = "tvapq02tcp";
const int ranStrLen = strlen(ranStr);
SWalSyncInfo syncMeta = {0};
syncMeta.isWeek = -1;
syncMeta.seqNum = UINT64_MAX;
syncMeta.term = UINT64_MAX;
class WalCleanEnv : public ::testing::Test {
protected:
@ -197,6 +194,10 @@ TEST_F(WalKeepEnv, readOldMeta) {
walResetEnv();
int code;
syncMeta.isWeek = -1;
syncMeta.seqNum = UINT64_MAX;
syncMeta.term = UINT64_MAX;
for (int i = 0; i < 10; i++) {
code = walAppendLog(pWal, i, i + 1, syncMeta, (void*)ranStr, ranStrLen);
ASSERT_EQ(code, 0);