github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/cli/interactive_tests/test_quit.tcl (about)

     1  #! /usr/bin/env expect -f
     2  #
     3  source [file join [file dirname $argv0] common.tcl]
     4  
     5  start_server $argv
     6  
     7  spawn /bin/bash
     8  send "PS1=':''/# '\r"
     9  eexpect ":/# "
    10  
    11  start_test "Test that quit with a very short timeout still proceeds with hard shutdown"
    12  
    13  send "$argv quit --insecure --drain-wait=1ns\r"
    14  eexpect "drain did not complete successfully"
    15  eexpect "hard shutdown"
    16  eexpect "ok"
    17  eexpect ":/# "
    18  
    19  end_test
    20  
    21  stop_server $argv