From 9db74722077366fb16993dfd30862bc506e3465a Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Thu, 30 Sep 2021 16:24:55 +0800 Subject: [PATCH] [TD-4335] fix test-case error --- tests/pytest/functions/function_count_last_stab.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/pytest/functions/function_count_last_stab.py b/tests/pytest/functions/function_count_last_stab.py index 1d777c6bd3..37e9319ba8 100644 --- a/tests/pytest/functions/function_count_last_stab.py +++ b/tests/pytest/functions/function_count_last_stab.py @@ -42,19 +42,19 @@ class TDTestCase: % (self.ts + i, i + 1, 1, i + 1, i + 1, i + 0.1, i + 0.1, i % 2, i + 1, i + 1, i + 1, i + 1, i + 1, i + 1)) tdSql.query("select count(*),last(*) from stest group by col1") - tdSql.checkRows(10) + tdSql.checkRows(11) tdSql.checkData(0, 0, 1) - tdSql.checkData(1, 2, 2) + tdSql.checkData(1, 2, 1) tdSql.checkData(1, 3, 1) tdSql.query("select count(*),last(*) from stest group by col2") - tdSql.checkRows(1) - tdSql.checkData(0, 0, 10) - tdSql.checkData(0, 2, 10) - tdSql.checkData(0, 3, 1) + tdSql.checkRows(2) + tdSql.checkData(0, 0, 1) + tdSql.checkData(0, 2, None); + tdSql.checkData(0, 3, None) tdSql.query("select count(*),last(ts,stest.*) from stest group by col1") - tdSql.checkRows(10) + tdSql.checkRows(11) tdSql.checkData(0, 0, 1) tdSql.checkData(0, 2, "2018-09-17 09:00:00") tdSql.checkData(1, 4, 1) -- GitLab