From c3fe35ce72d8033991d9b82968e1e6bcb70dddde Mon Sep 17 00:00:00 2001 From: Savorboard Date: Mon, 16 Dec 2019 14:55:09 +0800 Subject: [PATCH] fix unit tests --- test/DotNetCore.CAP.MySql.Test/DatabaseTestHost.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }