We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f42fdb commit 1819b5cCopy full SHA for 1819b5c
test/Pomelo.Extensions.Caching.MySql.Tests/MySqlCacheWithDatabaseTest.cs
@@ -742,10 +742,10 @@ public async Task IsDuplicateKeyException()
742
SlidingExpirationInSeconds = TimeSpan.FromSeconds(10)
743
};
744
745
- var exception = await Assert.ThrowsAsync<MySqlException>((Func<ValueTask>)(async () =>
+ var exception = await Assert.ThrowsAsync<MySqlException>(async () =>
746
{
747
await SetCacheItemFromDatabaseAsync(key, value);
748
- }));
+ });
749
Assert.NotNull(exception);
750
Assert.Equal(1062, exception.Number);
751
0 commit comments