Removed method isTestingOnOcis, and refactored code

This commit is contained in:
Prarup Gurung
2023-03-13 12:08:42 +05:45
parent fd64718a7c
commit 06169628af
5 changed files with 12 additions and 63 deletions
@@ -59,9 +59,7 @@ class SearchContext implements Context {
TableNode $properties = null
):void {
// Because indexing of newly uploaded files or directories with ocis is decoupled and occurs asynchronously, a short wait is necessary before searching files or folders.
if (OcisHelper::isTestingOnOcis()) {
sleep(4);
}
sleep(4);
$user = $this->featureContext->getActualUsername($user);
$baseUrl = $this->featureContext->getBaseUrl();
$password = $this->featureContext->getPasswordForUser($user);