Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
tests: fix and relax test
Browse files Browse the repository at this point in the history
  • Loading branch information
kennytm committed Apr 23, 2020
1 parent 40d5350 commit 57232f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/br_views_and_sequences/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ run_br restore db --db $DB -s "local://$TEST_DIR/$DB" --pd $PD_ADDR
set -x

views_count=$(run_sql "select count(*) c, sum(m) s from $DB.view_3;" | tail -2 | paste -sd ';')
[ $views_count = 'c: 8;s: 181' ]
[ "$views_count" = 'c: 8;s: 181' ]

run_sql "insert into $DB.table_2 (c) values (33);"
seq_val=$(run_sql "select a, b >= 4 as bg from $DB.table_2 where c = 33;" | tail -2 | paste -sd ';')
[ $seq_val = 'a: 8;bg: 1' ]
seq_val=$(run_sql "select a >= 8 and b >= 4 as g from $DB.table_2 where c = 33;" | tail -1)
[ "$seq_val" = 'g: 1' ]

0 comments on commit 57232f3

Please sign in to comment.