test: update the test cases.
This commit is contained in:
parent
cd000ba981
commit
9bfb0603d8
|
@ -539,9 +539,11 @@ void streamMetaClear(SStreamMeta* pMeta) {
|
|||
streamMetaReleaseTask(pMeta, p);
|
||||
}
|
||||
|
||||
if (pMeta->streamBackendRid != 0) {
|
||||
int32_t code = taosRemoveRef(streamBackendId, pMeta->streamBackendRid);
|
||||
if (code) {
|
||||
stError("vgId:%d remove stream backend Ref failed, rid:%"PRId64, pMeta->vgId, pMeta->streamBackendRid);
|
||||
stError("vgId:%d remove stream backend Ref failed, rid:%" PRId64, pMeta->vgId, pMeta->streamBackendRid);
|
||||
}
|
||||
}
|
||||
|
||||
taosHashClear(pMeta->pTasksMap);
|
||||
|
|
|
@ -67,11 +67,15 @@ class TDTestCase:
|
|||
tdSql.execute(f'use {self.dbname}')
|
||||
tdSql.execute(f'create stable {self.stbname} (ts timestamp,c0 int) tags(t0 int)')
|
||||
tdSql.execute(f'create stream `{self.streamname}` into `{self.streamtb}` as select count(*) from {self.stbname} interval(10s);')
|
||||
|
||||
time.sleep(15)
|
||||
tdSql.query('show streams')
|
||||
tdSql.checkEqual(tdSql.queryResult[0][0],self.streamname)
|
||||
tdSql.execute(f'drop stream {self.streamname}')
|
||||
tdSql.execute(f'drop stable {self.streamtb}')
|
||||
tdSql.execute(f'create stream {self.streamname} into `{self.streamtb}` as select count(*) from {self.stbname} interval(10s);')
|
||||
|
||||
time.sleep(10)
|
||||
tdSql.query('show streams')
|
||||
tdSql.checkEqual(tdSql.queryResult[0][0],self.streamname)
|
||||
tdSql.execute(f'drop stream `{self.streamname}`')
|
||||
|
|
Loading…
Reference in New Issue