Skip to content

Commit 05e2666

Browse files
vitess-bot[bot]vitess-bot
authored andcommitted
test: TestQueryTimeoutWithShardTargeting fix flaky test (#18242)
Signed-off-by: Harshit Gangal <[email protected]>
1 parent 45885b2 commit 05e2666

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/test/endtoend/vtgate/queries/timeout/timeout_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func TestQueryTimeoutWithShardTargeting(t *testing.T) {
125125
for _, query := range queries {
126126
t.Run(query, func(t *testing.T) {
127127
_, err := utils.ExecAllowError(t, mcmp.VtConn, query)
128-
assert.ErrorContains(t, err, "context deadline exceeded")
128+
// the error message can be different based on VTGate or VTTABLET or grpc error.
129129
assert.ErrorContains(t, err, "(errno 1317) (sqlstate 70100)")
130130
})
131131
}

0 commit comments

Comments
 (0)