Skip to content

Commit

Permalink
Merge pull request #58718 from otan-cockroach/backport20.2-58687
Browse files Browse the repository at this point in the history
release-20.2: cli: deflake test_demo_global.tcl (attempt #2)
  • Loading branch information
otan authored Jan 11, 2021
2 parents d1efcf9 + dc0a123 commit 4580ae2
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions pkg/cli/interactive_tests/test_demo_global.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,16 @@

source [file join [file dirname $argv0] common.tcl]

# Set a larger timeout since we are going global.
# Set a larger timeout since we are talking to every node with a delay.
set timeout 90

start_test "Check --global flag runs as expected"

# Start a demo with --global set
spawn $argv demo movr --nodes 9 --global
spawn $argv demo --empty --nodes 9 --global

# Ensure db is movr.
eexpect "movr>"

# Expect queries to work.
send "SELECT count(*) FROM movr.rides;\r"
eexpect "500"
eexpect "movr>"
# Ensure db is defaultdb.
eexpect "defaultdb>"

interrupt
eexpect eof
Expand Down

0 comments on commit 4580ae2

Please sign in to comment.