Skip to content

Commit 08b159d

Browse files
committed
Work around incorrect sequence numbers with compression.
For now, this is not ignored in MySqlConnector itself, but just in the test.
1 parent 9d56169 commit 08b159d

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

tests/SideBySide/ConnectionPool.cs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,19 @@ public async Task WaitTimeout()
175175

176176
using (var connection = new MySqlConnection(csb.ConnectionString))
177177
{
178-
await connection.OpenAsync();
179-
Assert.NotEqual(serverThread, connection.ServerThread);
178+
#if !BASELINE
179+
try
180+
#endif
181+
{
182+
await connection.OpenAsync();
183+
Assert.NotEqual(serverThread, connection.ServerThread);
184+
}
185+
#if !BASELINE
186+
catch (MySqlProtocolException) when (csb.UseCompression)
187+
{
188+
// workaround for https://bugs.mysql.com/bug.php?id=103412
189+
}
190+
#endif
180191
}
181192
}
182193

0 commit comments

Comments
 (0)