From 09efd7817663745a4c9e3ff25a195419b05fe529 Mon Sep 17 00:00:00 2001 From: plum-lihui Date: Fri, 22 Apr 2022 18:48:22 +0800 Subject: [PATCH] [test: add sleep for elect leader] --- tests/system-test/2-query/cast.py | 2 -- tests/system-test/2-query/distinct.py | 2 -- tests/system-test/2-query/varchar.py | 2 -- 3 files changed, 6 deletions(-) diff --git a/tests/system-test/2-query/cast.py b/tests/system-test/2-query/cast.py index 86319ae25d..f09e7d1f63 100644 --- a/tests/system-test/2-query/cast.py +++ b/tests/system-test/2-query/cast.py @@ -2,7 +2,6 @@ import taos import sys import datetime import inspect -import time from util.log import * from util.sql import * @@ -20,7 +19,6 @@ class TDTestCase: tdSql.prepare() tdLog.printNoPrefix("==========step1:create table") - time.sleep(2) tdSql.execute( '''create table stb1 (ts timestamp, c1 int, c2 bigint, c3 smallint, c4 tinyint, c5 float, c6 double, c7 bool, c8 binary(16),c9 nchar(32), c10 timestamp) diff --git a/tests/system-test/2-query/distinct.py b/tests/system-test/2-query/distinct.py index 43d48a19cb..a82f3a6f59 100644 --- a/tests/system-test/2-query/distinct.py +++ b/tests/system-test/2-query/distinct.py @@ -1,6 +1,5 @@ import taos import sys -import time from util.log import * from util.sql import * @@ -16,7 +15,6 @@ class TDTestCase: def run(self): # sourcery skip: extract-duplicate-method, remove-redundant-fstring tdSql.prepare() - time.sleep(2) tdLog.printNoPrefix("==========step1:create table") tdSql.execute("create stable db.stb1 (ts timestamp, c1 int, c2 int) tags(t0 tinyint, t1 int, t2 int)") diff --git a/tests/system-test/2-query/varchar.py b/tests/system-test/2-query/varchar.py index f0e3d36ffd..5cc6c8e399 100644 --- a/tests/system-test/2-query/varchar.py +++ b/tests/system-test/2-query/varchar.py @@ -1,6 +1,5 @@ import taos import sys -import time from util.log import * from util.sql import * @@ -18,7 +17,6 @@ class TDTestCase: tdSql.prepare() tdLog.printNoPrefix("==========step1:create table") - time.sleep(2) tdSql.execute( '''create table stb1 (ts timestamp, c1 int, c2 bigint, c3 smallint, c4 tinyint, c5 float, c6 double, c7 bool, c8 varchar(16),c9 nchar(32), c10 timestamp)