fix: -R no need do use db
This commit is contained in:
parent
237c9f2b28
commit
471ec0a5d6
|
@ -63,6 +63,7 @@ class TDTestCase(TBase):
|
||||||
idxv = arg[4]
|
idxv = arg[4]
|
||||||
|
|
||||||
# use db
|
# use db
|
||||||
|
if mode != "-R":
|
||||||
rlist = self.taos(f'{mode} -s "show databases;use {db};show databases;" ')
|
rlist = self.taos(f'{mode} -s "show databases;use {db};show databases;" ')
|
||||||
self.checkListString(rlist, "Database changed")
|
self.checkListString(rlist, "Database changed")
|
||||||
|
|
||||||
|
@ -86,7 +87,7 @@ class TDTestCase(TBase):
|
||||||
self.taos(f'{mode} -B -s "select * from {db}.{stb} where ts < 1"')
|
self.taos(f'{mode} -B -s "select * from {db}.{stb} where ts < 1"')
|
||||||
|
|
||||||
# get empty result
|
# get empty result
|
||||||
rlist = self.taos(f'{mode} -s "select * from {db}.{stb} where ts < 1"')
|
rlist = self.taos(f'{mode} -r -s "select * from {db}.{stb} where ts < 1"')
|
||||||
self.checkListString(rlist, "Query OK, 0 row(s) in set")
|
self.checkListString(rlist, "Query OK, 0 row(s) in set")
|
||||||
|
|
||||||
def checkBasic(self):
|
def checkBasic(self):
|
||||||
|
@ -99,7 +100,7 @@ class TDTestCase(TBase):
|
||||||
# native restful websock test
|
# native restful websock test
|
||||||
args = [
|
args = [
|
||||||
["", 18, 346, -2, 310],
|
["", 18, 346, -2, 310],
|
||||||
["-R -r", 22, 350, -3, 313],
|
["-R", 22, 350, -3, 313],
|
||||||
["-T 40 -E http://localhost:6041", 21, 349, -3, 312]
|
["-T 40 -E http://localhost:6041", 21, 349, -3, 312]
|
||||||
]
|
]
|
||||||
for arg in args:
|
for arg in args:
|
||||||
|
|
Loading…
Reference in New Issue