diff --git a/tests/system-test/0-others/fsync.py b/tests/system-test/0-others/fsync.py index aab8cccb3bd70505626514e103c955967e175a5a..084e3854a6a1ace5380f9b709aa71156b0c9a687 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")