-
Notifications
You must be signed in to change notification settings - Fork 79
KOGITO-1959: BDD tests: add possibility to check for errors in the wa… #329
Conversation
I've tested a few features and they ran ok, but still need to verify more features. |
@sutaakar and @radtriste I've updated the PR according to your comments by adding a new method with the error condition closure. However, I would rather prefer having only one method as it was previously. Having only one method empathises that when using the waitFor is a good practice to provide also an error condition. With two methods, maybe we even won't notice about this possibility. |
@Sgitario @radtriste I have an idea, what about using varargs for error conditions? |
sounds good to me |
6a5c55c
to
c91a571
Compare
@sutaakar good idea! I've already changed the method to use optional arguments, this way:
|
08cec66
to
611c401
Compare
I ran a few scenarios and everything looks working fine. |
@MarianMacik can you please have a look ? @Sgitario Can you rebase ? |
Rebased and conflicts resolved. |
JIRA Ticket: https://issues.redhat.com/browse/KOGITO-1959
Description: Add a new errorCondition closure to the WaitFor utility in order to define when to stop waiting for a condition.
As golang does not support having the same method with different arguments, we provide default methods to add the error condition (at the moment, only two):
Many thanks for submiting your Pull Request ❤️!
Please make sure that your PR meets the following requirements:
[KOGITO-XYZ] Subject