From 750953a48ecb7ff1abe9273b5d5a37b11d5e1622 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 2 Feb 2021 11:49:11 +0100 Subject: [PATCH] Fix for tests --- backend/tools/TestSuite/TestSuite.ApiTests/AssetTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/tools/TestSuite/TestSuite.ApiTests/AssetTests.cs b/backend/tools/TestSuite/TestSuite.ApiTests/AssetTests.cs index cec5ed88d..7117a345c 100644 --- a/backend/tools/TestSuite/TestSuite.ApiTests/AssetTests.cs +++ b/backend/tools/TestSuite/TestSuite.ApiTests/AssetTests.cs @@ -78,10 +78,10 @@ namespace TestSuite.ApiTests // STEP 2: Create big asset - var ex = await Assert.ThrowsAsync(() => _.UploadFileAsync(10_000_000)); + var ex = await Assert.ThrowsAnyAsync(() => _.UploadFileAsync(10_000_000)); // Client library cannot catch this exception properly. - Assert.Null(ex.StatusCode); + Assert.True(ex is HttpRequestException || ex is SquidexManagementException); } [Fact]