From 6eef673c33d8611ab6f887d55b44fcebfa6b1fc7 Mon Sep 17 00:00:00 2001 From: wanggaofeng <15601716045@163.com> Date: Wed, 6 Mar 2024 09:59:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- XUnitDIStudy.Test/ControllerTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XUnitDIStudy.Test/ControllerTest.cs b/XUnitDIStudy.Test/ControllerTest.cs index 6cfdbb0..244367f 100644 --- a/XUnitDIStudy.Test/ControllerTest.cs +++ b/XUnitDIStudy.Test/ControllerTest.cs @@ -36,7 +36,7 @@ namespace XUnitDIStudy.Test // Assert response.EnsureSuccessStatusCode(); // Status Code 200-299 - List result = System.Text.Json.JsonSerializer.Deserialize>(response.Content.ReadAsStringAsync().Result); + List result = System.Text.Json.JsonSerializer.Deserialize>(await response.Content.ReadAsStringAsync()); Assert.NotNull(result); Assert.True(result.Count>0);