From 9b9938f7d57c11bb858632256a907e3040c0e6da Mon Sep 17 00:00:00 2001 From: Ping Xiao Date: Sat, 9 Oct 2021 16:05:26 +0800 Subject: [PATCH] update cfg path in one test case --- tests/pytest/client/twoClients.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/pytest/client/twoClients.py b/tests/pytest/client/twoClients.py index 1a1b36c554..358c4e851f 100644 --- a/tests/pytest/client/twoClients.py +++ b/tests/pytest/client/twoClients.py @@ -17,6 +17,7 @@ sys.path.insert(0, os.getcwd()) from util.log import * from util.sql import * from util.dnodes import * +import multiprocessing as mp import taos @@ -25,7 +26,6 @@ class TwoClients: self.host = "127.0.0.1" self.user = "root" self.password = "taosdata" - self.config = "/home/xp/git/TDengine/sim/dnode1/cfg" def run(self): tdDnodes.init("") @@ -37,7 +37,7 @@ class TwoClients: tdDnodes.start(1) # first client create a stable and insert data - conn1 = taos.connect(self.host, self.user, self.password, self.config) + conn1 = taos.connect(host=self.host, user=self.user, password=self.password, config=tdDnodes.getSimCfgPath()) cursor1 = conn1.cursor() cursor1.execute("drop database if exists db") cursor1.execute("create database db") @@ -46,7 +46,7 @@ class TwoClients: cursor1.execute("insert into t0 using tb tags('beijing') values(now, 1)") # second client alter the table created by cleint - conn2 = taos.connect(self.host, self.user, self.password, self.config) + conn2 = taos.connect(host=self.host, user=self.user, password=self.password, config=tdDnodes.getSimCfgPath()) cursor2 = conn2.cursor() cursor2.execute("use db") cursor2.execute("alter table tb add column name nchar(30)") -- GitLab