From 6d09a3ed8450dcf33fc5ab2f8067478f3fd774f2 Mon Sep 17 00:00:00 2001 From: cpwu Date: Fri, 20 May 2022 20:04:25 +0800 Subject: [PATCH] fix case --- tests/system-test/0-others/fsync.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/system-test/0-others/fsync.py b/tests/system-test/0-others/fsync.py index aab8cccb3b..084e3854a6 100644 --- a/tests/system-test/0-others/fsync.py +++ b/tests/system-test/0-others/fsync.py @@ -42,10 +42,11 @@ class TDTestCase: wal_index = 0 fsync_index = 0 tdSql.query("show databases") + print(tdSql.cursor.description) for i in range(tdSql.queryCols): - if tdSql.cursor.description[i] == "wal": + if tdSql.cursor.description[i][0] == "wal": wal_index = i - if tdSql.cursor.description[i] == "fsync": + if tdSql.cursor.description[i][0] == "fsync": fsync_index = i tdSql.execute("drop database if exists db1") -- GitLab