Skip to content

Commit 10f3d90

Browse files
[release-21.0] Test: Increase query timeout to fix flaky test 'TestQueryTimeoutWithShardTargeting' (#18016) (#18040)
Signed-off-by: Harshit Gangal <[email protected]> Co-authored-by: vitess-bot[bot] <108069721+vitess-bot[bot]@users.noreply.github.com>
1 parent 2a1a2aa commit 10f3d90

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ func TestQueryTimeoutWithShardTargeting(t *testing.T) {
112112
utils.Exec(t, mcmp.VtConn, "use `ks_misc/-80`")
113113

114114
// insert some data
115-
utils.Exec(t, mcmp.VtConn, "insert into t1(id1, id2) values (1,2),(3,4),(4,5),(5,6)")
115+
// Fix: Increased query timeout from 100ms to 1000ms to prevent timeout errors on slow runners.
116+
utils.Exec(t, mcmp.VtConn, "insert /*vt+ QUERY_TIMEOUT_MS=1000 */ into t1(id1, id2) values (1,2),(3,4),(4,5),(5,6)")
116117

117118
queries := []string{
118119
"insert /*vt+ QUERY_TIMEOUT_MS=1 */ into t1(id1, id2) values (6,sleep(5))",

0 commit comments

Comments
 (0)