diff --git a/tests/script/api/whiteListTest b/tests/script/api/whiteListTest new file mode 100755 index 0000000000..606b485bb0 Binary files /dev/null and b/tests/script/api/whiteListTest differ diff --git a/tests/script/api/whiteListTest.c b/tests/script/api/whiteListTest.c index 4118bf4306..9e5eec2ef6 100644 --- a/tests/script/api/whiteListTest.c +++ b/tests/script/api/whiteListTest.c @@ -51,7 +51,7 @@ void __taos_notify_cb(void *param, void *ext, int type) { } case TAOS_NOTIFY_WHITELIST_VER: { ++nWhiteListVerNotified; - printf("%s:%d type:%d user:%s ver:%d\n", __func__, __LINE__, type, param ? (char *)param : "NULL", *(int64_t *)ext); + printf("%s:%d type:%d user:%s ver:%"PRId64 "\n", __func__, __LINE__, type, param ? (char *)param : "NULL", *(int64_t *)ext); break; } default: @@ -118,7 +118,7 @@ int main(int argc, char *argv[]) { } createUsers(taos, argv[1]); - sleep(10); + sleep(1); dropUsers(taos); taos_close(taos);