[test: add sleep for elect leader]
This commit is contained in:
parent
4291981b54
commit
60c9ec38ac
|
@ -2,6 +2,7 @@ import taos
|
|||
import sys
|
||||
import datetime
|
||||
import inspect
|
||||
import time
|
||||
|
||||
from util.log import *
|
||||
from util.sql import *
|
||||
|
@ -19,6 +20,7 @@ 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)
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import taos
|
||||
import sys
|
||||
import time
|
||||
|
||||
from util.log import *
|
||||
from util.sql import *
|
||||
|
@ -15,6 +16,7 @@ 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)")
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import taos
|
||||
import sys
|
||||
import time
|
||||
|
||||
from util.log import *
|
||||
from util.sql import *
|
||||
|
@ -17,6 +18,7 @@ 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)
|
||||
|
|
Loading…
Reference in New Issue