From 500487f2fadb58b0f53b9d1cba44c081c84dafe5 Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Tue, 4 Nov 2025 16:46:34 +0100 Subject: [PATCH] test: fix a few more collaborative posixfs test (#1777) wait for postprocessing to complete before accessing files on disk Related: #1747 --- tests/acceptance/bootstrap/CliContext.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/acceptance/bootstrap/CliContext.php b/tests/acceptance/bootstrap/CliContext.php index c3554b3d1..35889cc88 100644 --- a/tests/acceptance/bootstrap/CliContext.php +++ b/tests/acceptance/bootstrap/CliContext.php @@ -719,6 +719,10 @@ class CliContext implements Context { * @return void */ public function theAdministratorCopiesFileToFolder(string $user, string $file, string $folder): void { + // this downloads the file using WebDAV and by that checks if it's still in + // postprocessing. So its effectively a check for finished postprocessing + $this->featureContext->userDownloadsFileUsingTheAPI($user, $file); + $userUuid = $this->featureContext->getAttributeOfCreatedUser($user, 'id'); $storagePath = $this->getUsersStoragePath(); @@ -839,6 +843,10 @@ class CliContext implements Context { * @return void */ public function theAdministratorCopiesFileToSpace(string $user, string $file, string $space): void { + // this downloads the file using WebDAV and by that checks if it's still in + // postprocessing. So its effectively a check for finished postprocessing + $this->featureContext->userDownloadsFileUsingTheAPI($user, $file); + $userUuid = $this->featureContext->getAttributeOfCreatedUser($user, 'id'); $usersStoragePath = $this->getUsersStoragePath(); $projectsStoragePath = $this->getProjectsStoragePath();