From 8a6a6a8a23d765d9fa1db93b93512fcf15aed3fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20=C4=8Ce=C5=A1ka?= Date: Fri, 16 Aug 2024 17:23:04 +0200 Subject: [PATCH] Fix warning in test. --- .../StoreApiOrderTests.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/Kentico.Xperience.K13Ecommerce.IntegrationTests/StoreApiOrderTests.cs b/test/Kentico.Xperience.K13Ecommerce.IntegrationTests/StoreApiOrderTests.cs index 6933344b..fa754330 100644 --- a/test/Kentico.Xperience.K13Ecommerce.IntegrationTests/StoreApiOrderTests.cs +++ b/test/Kentico.Xperience.K13Ecommerce.IntegrationTests/StoreApiOrderTests.cs @@ -45,11 +45,12 @@ public async Task OrderDetail_ExistingOrder(int orderId, string customerEmail) /// Order ID. [Test] [TestCase(99999)] - public async Task OrderDetail_NonExistingOrder(int orderId) + public Task OrderDetail_NonExistingOrder(int orderId) { // test that exception has status code 404 var exception = Assert.ThrowsAsync(async () => await StoreApiClient.OrderDetailAsync(orderId)); Assert.That(exception!.StatusCode, Is.EqualTo(404)); + return Task.CompletedTask; } ///