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]