diff --git a/tests/pytest/random-test/random-test-multi-threading.py b/tests/pytest/random-test/random-test-multi-threading.py index fed9b035c2f106f2b2ee47d4a97f0dc87a24ce3a..7d1a8a155dac8b427ec184b544632c747a6eca6a 100644 --- a/tests/pytest/random-test/random-test-multi-threading.py +++ b/tests/pytest/random-test/random-test-multi-threading.py @@ -195,15 +195,16 @@ class Test (threading.Thread): tdDnodes.forcestop(1) tdDnodes.deploy(1) + tdDnodes.start(1) + tdSql.prepare() last_tb = "" last_stb = "" written = 0 - tdDnodes.start(1) - tdSql.prepare() def delete_datafiles(self): tdLog.info("delete_data_files") global last_tb + global last_stb global written dnodesDir = tdDnodes.getDnodesRootDir() @@ -211,11 +212,12 @@ class Test (threading.Thread): deleteCmd = 'rm -rf %s' % dataDir os.system(deleteCmd) - last_tb = "" - written = 0 tdDnodes.start(1) # tdLog.sleep(10) tdSql.prepare() + last_tb = "" + last_stb = "" + written = 0 def run(self): dataOp = {