Skip to content

Commit 0f5469e

Browse files
committed
Add time.Sleep() in TestUpdateTableIndexMetrics to avoid flakiness in CI
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
1 parent c3c754e commit 0f5469e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

go/vt/vttablet/endtoend/misc_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,6 +1112,8 @@ func TestUpdateTableIndexMetrics(t *testing.T) {
11121112
require.NoError(t, err)
11131113
}
11141114

1115+
time.Sleep(5 * time.Second)
1116+
11151117
err = framework.Server.ReloadSchema(ctx)
11161118
require.NoError(t, err)
11171119

@@ -1120,6 +1122,8 @@ func TestUpdateTableIndexMetrics(t *testing.T) {
11201122
pageSize, err := results.Rows[0][0].ToFloat64()
11211123
require.NoError(t, err)
11221124

1125+
time.Sleep(5 * time.Second)
1126+
11231127
vars := framework.DebugVars()
11241128

11251129
assert.Equal(t, 2.0, framework.FetchVal(vars, "TableRows/vitess_a"))

0 commit comments

Comments
 (0)