From 57232f3eaaec7d6f994bbd03f9c8b70cf27713d1 Mon Sep 17 00:00:00 2001 From: kennytm Date: Thu, 23 Apr 2020 15:26:14 +0800 Subject: [PATCH] tests: fix and relax test --- tests/br_views_and_sequences/run.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/br_views_and_sequences/run.sh b/tests/br_views_and_sequences/run.sh index 7261898a2..345d3aa15 100755 --- a/tests/br_views_and_sequences/run.sh +++ b/tests/br_views_and_sequences/run.sh @@ -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' ]