diff --git a/go/test/endtoend/vtgate/queries/timeout/timeout_test.go b/go/test/endtoend/vtgate/queries/timeout/timeout_test.go index eb91982b6e0..25a7f57b3bc 100644 --- a/go/test/endtoend/vtgate/queries/timeout/timeout_test.go +++ b/go/test/endtoend/vtgate/queries/timeout/timeout_test.go @@ -96,9 +96,9 @@ func TestQueryTimeoutWithTables(t *testing.T) { _, err = utils.ExecAllowError(t, mcmp.VtConn, "select /*vt+ QUERY_TIMEOUT_MS=20 */ sleep(0.1) from t1 where id1 = 1") require.Error(t, err) assert.Contains(t, err.Error(), "context deadline exceeded") - vttabletVersion, err := cluster.GetMajorVersion("vttablet") - require.NoError(t, err) + vttabletVersion, err2 := cluster.GetMajorVersion("vttablet") + require.NoError(t, err2) if vttabletVersion <= 19 { - assert.Contains(t, err.Error(), "(errno 1317) (sqlstate 70100)") + require.Contains(t, err.Error(), "(errno 1317) (sqlstate 70100)") } }