Skip to content

Commit

Permalink
chore: update get size test
Browse files Browse the repository at this point in the history
  • Loading branch information
discord9 committed Nov 4, 2024
1 parent d417837 commit 55f64cf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
16 changes: 7 additions & 9 deletions tests/cases/standalone/common/flow/flow_basic.result
Original file line number Diff line number Diff line change
Expand Up @@ -904,19 +904,17 @@ FROM
| svc1 | 200 | 2024-10-18T19:01:31 |
+--------------+-----+---------------------+

-- sleep for 5s to make sure even in distributed mode, the flow is flushed
-- after at least one full heartbeat period(3s)
-- SQLNESS SLEEP 5s
-- Test if FLOWS table works, but don't care about the result since it vary from runs
SELECT
COUNT(state_size)
1
FROM
INFORMATION_SCHEMA.FLOWS;

+--------------------------------------------+
| COUNT(information_schema.flows.state_size) |
+--------------------------------------------+
| 1 |
+--------------------------------------------+
+----------+
| Int64(1) |
+----------+
| 1 |
+----------+

DROP FLOW requests_long_term;

Expand Down
6 changes: 2 additions & 4 deletions tests/cases/standalone/common/flow/flow_basic.sql
Original file line number Diff line number Diff line change
Expand Up @@ -504,11 +504,9 @@ SELECT
FROM
requests_without_ip;

-- sleep for 5s to make sure even in distributed mode, the flow is flushed
-- after at least one full heartbeat period(3s)
-- SQLNESS SLEEP 5s
-- Test if FLOWS table works, but don't care about the result since it vary from runs
SELECT
COUNT(state_size)
1
FROM
INFORMATION_SCHEMA.FLOWS;

Expand Down

0 comments on commit 55f64cf

Please sign in to comment.