[Tests-Only] Allow up to 9 seconds delay in setTimeout API tests #37714
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Last night the drone agent that ran the core API tests with encryption was running slower than normal. We got fails like:
https://drone.owncloud.com/owncloud/encryption/1356/41/16
The agent was so slow that the check of the lock timeout happened more than 5 seconds later. The test results were expecting a value within 5 seconds of the actual lock timeout. The results were just 6 or 7 seconds difference.
Also, everything runs slower with encryption, so probably we are getting near this 5-second allowance quite often anyway.
This PR expands it to 9 seconds. That does not effect the validity of the test scenarios, and it is a practical way to make this pass 99.99% of the time (without trying to refactor a heap of code to do extra real-time calculations...)
How Has This Been Tested?
CI
Types of changes
Checklist: