Skip to content

Commit

Permalink
change of name
Browse files Browse the repository at this point in the history
Signed-off-by: Shlomi Noach <[email protected]>
  • Loading branch information
shlomi-noach committed Jan 26, 2021
1 parent 8e40d6b commit e20e0f7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions go/test/endtoend/tabletmanager/throttler/throttler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ var (
)

const (
throttlerInitWait = 10 * time.Second
accumulateLagWait = 2 * time.Second
mysqlRefreshIntervalWait = 12 * time.Second
replicationCatchUpWait = 5 * time.Second
throttlerInitWait = 10 * time.Second
accumulateLagWait = 2 * time.Second
throttlerRefreshIntervalWait = 12 * time.Second
replicationCatchUpWait = 5 * time.Second
)

func TestMain(m *testing.M) {
Expand Down Expand Up @@ -230,7 +230,7 @@ func TestNoReplicas(t *testing.T) {
err := clusterInstance.VtctlclientProcess.ExecuteCommand("ChangeTabletType", replicaTablet.Alias, "RDONLY")
assert.NoError(t, err)

time.Sleep(mysqlRefreshIntervalWait)
time.Sleep(throttlerRefreshIntervalWait)
// This makes no REPLICA servers available. We expect something like:
// {"StatusCode":200,"Value":0,"Threshold":1,"Message":""}
resp, err := throttleCheck(primaryTablet)
Expand All @@ -241,7 +241,7 @@ func TestNoReplicas(t *testing.T) {
err := clusterInstance.VtctlclientProcess.ExecuteCommand("ChangeTabletType", replicaTablet.Alias, "REPLICA")
assert.NoError(t, err)

time.Sleep(mysqlRefreshIntervalWait)
time.Sleep(throttlerRefreshIntervalWait)
// Restore valid replica
resp, err := throttleCheck(primaryTablet)
assert.NoError(t, err)
Expand Down

0 comments on commit e20e0f7

Please sign in to comment.