From 6e68fae2c3813977164aac8580a9677a926d5bc5 Mon Sep 17 00:00:00 2001 From: Saw-jan Date: Fri, 6 Jan 2023 12:21:19 +0545 Subject: [PATCH] fix sendException logic --- tests/TestHelpers/HttpRequestHelper.php | 2 +- .../features/apiAsyncUpload/delayPostprocessing.feature | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/TestHelpers/HttpRequestHelper.php b/tests/TestHelpers/HttpRequestHelper.php index bf701b6f9..2348e7d6b 100644 --- a/tests/TestHelpers/HttpRequestHelper.php +++ b/tests/TestHelpers/HttpRequestHelper.php @@ -226,7 +226,7 @@ class HttpRequestHelper { $client ); - if ($response->getStatusCode() >= 400) { + if ($response->getStatusCode() >= 400 && $response->getStatusCode() !== self::HTTP_TOO_EARLY) { $sendExceptionHappened = true; } diff --git a/tests/acceptance/features/apiAsyncUpload/delayPostprocessing.feature b/tests/acceptance/features/apiAsyncUpload/delayPostprocessing.feature index 8176ea70e..f50b23926 100644 --- a/tests/acceptance/features/apiAsyncUpload/delayPostprocessing.feature +++ b/tests/acceptance/features/apiAsyncUpload/delayPostprocessing.feature @@ -28,7 +28,7 @@ Feature: delay post-processing of uploaded files | /dav/spaces/%spaceid%/file.txt | - Scenario Outline: user sends PROPFIND request to the folder while its some files are still being processed + Scenario Outline: user sends PROPFIND request to the folder while files in the folder are still being processed Given user "Alice" has created folder "my_data" And user "Alice" has uploaded file with content "uploaded content" to "/my_data/file.txt" When user "Alice" requests "" with "PROPFIND" without retrying