Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli: deflake test_demo_global.tcl (attempt #2) #58687

Merged
merged 1 commit into from
Jan 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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