Skip to content

Commit

Permalink
delete TestActionAndTimeout (#15322)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Mason <[email protected]>
  • Loading branch information
Andrew Mason authored Feb 22, 2024
1 parent 6fec119 commit 89bc131
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions go/test/endtoend/tabletmanager/commands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import (
"fmt"
"reflect"
"testing"
"time"

"vitess.io/vitess/go/test/endtoend/utils"

Expand Down Expand Up @@ -140,18 +139,6 @@ func assertExecuteFetch(t *testing.T, qr string) {
assert.Equal(t, want, got)
}

// ActionAndTimeout test
func TestActionAndTimeout(t *testing.T) {
defer cluster.PanicHandler(t)
err := clusterInstance.VtctldClientProcess.ExecuteCommand("SleepTablet", primaryTablet.Alias, "5s")
require.Nil(t, err)
time.Sleep(1 * time.Second)

// try a frontend RefreshState that should timeout as the tablet is busy running the other one
err = clusterInstance.VtctlclientProcess.ExecuteCommand("RefreshState", primaryTablet.Alias, "--wait_timeout", "2s")
assert.Error(t, err, "timeout as tablet is in Sleep")
}

func TestHook(t *testing.T) {
// test a regular program works
defer cluster.PanicHandler(t)
Expand Down

0 comments on commit 89bc131

Please sign in to comment.