Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failing API tests - again #104

Merged
merged 5 commits into from
Feb 14, 2019
Merged

Fix failing API tests - again #104

merged 5 commits into from
Feb 14, 2019

Conversation

gregkalapos
Copy link
Contributor

@gregkalapos gregkalapos commented Feb 14, 2019

It looks like the timers on the VMs in CI have a very low resolution. Therefore we wait even longer in the API tests.

Update: waiting longer does not help, we enable 10% error due to this inaccuracy in await Task.Delay. I think it's fine, we don't wanna measure in these tests with a super high accuracy, the point is that if we have a 10ms wait in the code than the duration should be around 10ms.. (and not 0 or 1..., but e.g. 9,12ms due to this inaccuracy is imo fine)

Solves #94

It looks like the timers on the VMs in CI have a very low resolution. Therefore we wait even longer in the API tests.
Enable 10% inaccuracy (due to `await Task.Delay` inaccuracy)
@gregkalapos
Copy link
Contributor Author

First build was green, all test pass. Re-triggered to give it another try, if it's still green I'll merge it.

@gregkalapos
Copy link
Contributor Author

Found 1 test which was not updated. Re-run again.

@gregkalapos gregkalapos changed the title Increase wait time in API tests - again Fix failing API tests - again Feb 14, 2019
@gregkalapos gregkalapos self-assigned this Feb 14, 2019
@gregkalapos
Copy link
Contributor Author

Tests green, we build fails because of our known "threshold" issue, which is WIP. I merge this.

@gregkalapos gregkalapos merged commit 1e624a0 into elastic:master Feb 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant