From 941255d7e28a3273b43b1c5720453339d4d2f359 Mon Sep 17 00:00:00 2001 From: Alex Duan <417921451@qq.com> Date: Sat, 11 Dec 2021 12:22:33 +0800 Subject: [PATCH] extent check timeout to avoid failed --- src/client/src/tscStream.c | 2 +- tests/pytest/stream/sys.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/src/tscStream.c b/src/client/src/tscStream.c index 528e646ff0..c8d09412a4 100644 --- a/src/client/src/tscStream.c +++ b/src/client/src/tscStream.c @@ -972,7 +972,7 @@ void splitStreamSql(const char *str, char **sql, char **to, char **split) { return ; } // SQL value - int32_t len = p1 - str - LABEL_SQL_LEN; + int32_t len = (int32_t)(p1 - str - LABEL_SQL_LEN); *sql = (char *)tmalloc(len + 1); strncpy(*sql, str + LABEL_SQL_LEN, len); (*sql)[len] = 0; // str end diff --git a/tests/pytest/stream/sys.py b/tests/pytest/stream/sys.py index c9a3fccfe6..fc97934d3f 100644 --- a/tests/pytest/stream/sys.py +++ b/tests/pytest/stream/sys.py @@ -47,7 +47,7 @@ class TDTestCase: "select * from iostrm", ] for sql in sqls: - (rows, _) = tdSql.waitedQuery(sql, 1, 240) + (rows, _) = tdSql.waitedQuery(sql, 1, 600) if rows < 1: tdLog.exit("failed: sql:%s, expect at least one row" % sql) -- GitLab