Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
  • Loading branch information
frouioui committed Jul 31, 2024
1 parent 2360916 commit 0a383ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions go/test/endtoend/vtgate/queries/timeout/timeout_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)")
}
}

0 comments on commit 0a383ad

Please sign in to comment.