Software versions
MySqlConnector version: 2.4.0
Describe the bug
|
await Assert.ThrowsAnyAsync<Exception>(async () => await connection.ResetConnectionAsync().ConfigureAwait(false)); |
This recent test shows that ResetConnectionAsync throws a SocketException (or some other .NET exception for an I/O error).
Expected behavior
It should be wrapped in a MySqlException, like all other I/O exceptions.
Software versions
MySqlConnector version: 2.4.0
Describe the bug
MySqlConnector/tests/MySqlConnector.Tests/ConnectionTests.cs
Line 324 in ae029d5
This recent test shows that
ResetConnectionAsyncthrows aSocketException(or some other .NET exception for an I/O error).Expected behavior
It should be wrapped in a
MySqlException, like all other I/O exceptions.