fix: -R no need do use db

This commit is contained in:
Alex Duan 2025-02-24 15:55:54 +08:00
parent 237c9f2b28
commit 471ec0a5d6
1 changed files with 5 additions and 4 deletions

View File

@ -63,6 +63,7 @@ class TDTestCase(TBase):
idxv = arg[4]
# use db
if mode != "-R":
rlist = self.taos(f'{mode} -s "show databases;use {db};show databases;" ')
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"')
# 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")
def checkBasic(self):
@ -99,7 +100,7 @@ class TDTestCase(TBase):
# native restful websock test
args = [
["", 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]
]
for arg in args: