Merge pull request #11197 from owncloud/fix/test-postprocessing
[full-ci] fix: test, file postprocessing flakyness
This commit is contained in:
2 files changed
+12
No files matched your search
@@ -3029,4 +3029,15 @@ class FeatureContext extends BehatVariablesContext {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @Given the system waits for :arg1 seconds
|
||||
*
|
||||
* @param string $seconds
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function theSystemWaitsForSeconds(string $seconds): void {
|
||||
\sleep((int)$seconds);
|
||||
}
|
||||
}
|
||||
@@ -29,6 +29,7 @@ Feature: List upload sessions via CLI command
|
||||
| ANTIVIRUS_INFECTED_FILE_HANDLING | abort |
|
||||
And user "Alice" has uploaded file "filesForUpload/filesWithVirus/eicar.com" to "/virusFile.txt"
|
||||
And the config "POSTPROCESSING_DELAY" has been set to "10s"
|
||||
And the system waits for "5" seconds
|
||||
And user "Alice" has uploaded file with content "uploaded content" to "/file1.txt"
|
||||
And user "Alice" has uploaded file with content "uploaded content" to "/file2.txt"
|
||||
When the administrator lists all the upload sessions with flag "processing"
|
||||
|
||||
Reference in new issue
Block a user