diff --git a/test/DotNetCore.CAP.MySql.Test/DatabaseTestHost.cs b/test/DotNetCore.CAP.MySql.Test/DatabaseTestHost.cs index 90f7317..8d3be8a 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).GetAwaiter().GetResult(); + storage.InitializeAsync(token); _sqlObjectInstalled = true; } }