diff --git a/src/DotNetCore.CAP.MySql/DotNetCore.CAP.MySql.csproj b/src/DotNetCore.CAP.MySql/DotNetCore.CAP.MySql.csproj index 53978d8..6ba6e21 100644 --- a/src/DotNetCore.CAP.MySql/DotNetCore.CAP.MySql.csproj +++ b/src/DotNetCore.CAP.MySql/DotNetCore.CAP.MySql.csproj @@ -1,7 +1,7 @@  - netstandard2.0 + netstandard2.0;netstandard2.1 DotNetCore.CAP.MySql $(PackageTags);MySQL diff --git a/test/DotNetCore.CAP.MySql.Test/ConnectionUtil.cs b/test/DotNetCore.CAP.MySql.Test/ConnectionUtil.cs index fec2706..eca9b01 100644 --- a/test/DotNetCore.CAP.MySql.Test/ConnectionUtil.cs +++ b/test/DotNetCore.CAP.MySql.Test/ConnectionUtil.cs @@ -38,7 +38,7 @@ namespace DotNetCore.CAP.MySql.Test public static MySqlConnection CreateConnection(string connectionString = null) { - connectionString = connectionString ?? GetConnectionString(); + connectionString ??= GetConnectionString(); var connection = new MySqlConnection(connectionString); connection.Open(); return connection; diff --git a/test/DotNetCore.CAP.MySql.Test/DatabaseTestHost.cs b/test/DotNetCore.CAP.MySql.Test/DatabaseTestHost.cs index 8d3be8a..90f7317 100644 --- a/test/DotNetCore.CAP.MySql.Test/DatabaseTestHost.cs +++ b/test/DotNetCore.CAP.MySql.Test/DatabaseTestHost.cs @@ -34,7 +34,7 @@ namespace DotNetCore.CAP.MySql.Test var storage = GetService(); var token = new CancellationTokenSource().Token; CreateDatabase(); - storage.InitializeAsync(token); + storage.InitializeAsync(token).GetAwaiter().GetResult(); _sqlObjectInstalled = true; } }