fix: build error for schedularTests

This commit is contained in:
Alex Duan 2024-02-18 14:57:29 +08:00
parent 524ebca16a
commit dfd1b5ccaf
1 changed files with 3 additions and 3 deletions

View File

@ -1010,9 +1010,9 @@ TEST(otherTest, otherCase) {
schReleaseJob(0);
schFreeRpcCtx(NULL);
EXPECT_EQ(schDumpEpSet(NULL), NULL);
EXPECT_EQ(schGetOpStr(SCH_OP_NULL), "NULL");
EXPECT_EQ(schGetOpStr((SCH_OP_TYPE)100, "UNKNOWN");
ASSERT_EQ(schDumpEpSet(NULL), (char*)NULL);
ASSERT_EQ(strcmp(schGetOpStr(SCH_OP_NULL), "NULL"), 0);
ASSERT_EQ(strcmp(schGetOpStr((SCH_OP_TYPE)100), "UNKNOWN"), 0);
}
int main(int argc, char **argv) {