Skip to content

Commit 1f0215d

Browse files
committed
Increase test timeouts.
Try to reduce the number of spurious test failures under CI.
1 parent 047ae48 commit 1f0215d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tests/SideBySide/CancelTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ public async Task CancelSlowQueryWithTokenAfterExecuteReader()
336336
var stopwatch = Stopwatch.StartNew();
337337
using (var reader = await cmd.ExecuteReaderAsync(cts.Token))
338338
{
339-
TestUtilities.AssertDuration(stopwatch, 450, 1500);
339+
TestUtilities.AssertDuration(stopwatch, 450, 3000);
340340

341341
var rows = 0;
342342
try
@@ -371,7 +371,7 @@ public async Task CancelSlowQueryWithTokenAfterNextResult()
371371
// the call to NextResult should block until the token is cancelled
372372
var stopwatch = Stopwatch.StartNew();
373373
Assert.True(await reader.NextResultAsync(cts.Token));
374-
TestUtilities.AssertDuration(stopwatch, 450, 500);
374+
TestUtilities.AssertDuration(stopwatch, 450, 1500);
375375

376376
int rows = 0;
377377
try

tests/SideBySide/ConnectAsync.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public async Task ConnectTimeoutAsync()
127127
var stopwatch = Stopwatch.StartNew();
128128
await Assert.ThrowsAsync<MySqlException>(async () => await connection.OpenAsync());
129129
stopwatch.Stop();
130-
TestUtilities.AssertDuration(stopwatch, 2900, 500);
130+
TestUtilities.AssertDuration(stopwatch, 2900, 1500);
131131
}
132132
}
133133

tests/SideBySide/ConnectSync.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public void ConnectTimeout()
214214
var stopwatch = Stopwatch.StartNew();
215215
Assert.Throws<MySqlException>(() => connection.Open());
216216
stopwatch.Stop();
217-
TestUtilities.AssertDuration(stopwatch, 2900, 500);
217+
TestUtilities.AssertDuration(stopwatch, 2900, 1500);
218218
}
219219
}
220220

0 commit comments

Comments
 (0)