Skip to content

Commit 3aef1b4

Browse files
Fix flaky test by being more permissive with the error message in TestOverallQueryTimeout (vitessio#18299)
Signed-off-by: Manan Gupta <[email protected]>
1 parent f8d08a3 commit 3aef1b4

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
@@ -198,7 +198,7 @@ func TestOverallQueryTimeout(t *testing.T) {
198198
_, err := utils.ExecAllowError(t, mcmp.VtConn, "select /*vt+ QUERY_TIMEOUT_MS=4000 */ sleep(u2.id2), u1.id2 from t1 u1 join t1 u2 where u1.id2 = u2.id1")
199199
assert.Error(t, err)
200200
// We can get two different error messages based on whether it is coming from vttablet or vtgate
201-
deadLineExceeded := "DeadlineExceeded desc = stream terminated by RST_STREAM"
201+
deadLineExceeded := "DeadlineExceeded desc"
202202
if !strings.Contains(err.Error(), "Query execution was interrupted, maximum statement execution time exceeded") {
203203
assert.ErrorContains(t, err, deadLineExceeded)
204204
}

0 commit comments

Comments
 (0)