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

Create ConditionAwaiter via factory #128

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rosenbergerphilipp
Copy link

  • ConditionAwaiter is now created via factory

  • Factory can be replaced with system-property "awaitility-condition-awaiter-factory".

These changes allow the ConditionAwaiter to be easily replaced. This makes it possible for the CI-environment to use a different ConditionAwaiter logic than the DEV-environment.
The custom factory needs extend ConditionAwaiterFactory and implement newConditionAwaiter.
To replace the factory set --awaitility-condition-awaiter-factory to "org.path.to.ClassName".

@johanhaleby
Copy link
Collaborator

Thanks for the PR. Out of curiosity, what is the use case you're trying to solve? Why do you need different implementations of ConditionFactory for dev and CI?

@rosenbergerphilipp
Copy link
Author

Basically alot of tests fail because the server load increases the execution time. So i'm trying to create a load based "grace period" so the tests can take longer then the maximum time when the load is too high.

@guenhter
Copy link

Love to see this.

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

3 participants