Hey we are looking into pactflow for our contract ...
# pactflow
a
Hey we are looking into pactflow for our contract testing. We have a workflow where if a consumer uploads a new contract pactflow will trigger a web hook to our other components workflow to verify the pacts however it still means that the first run of the workflow fails and the 2nd run passes given the other component has run the check to validate the consumer contract. Is there a way using the can-i-deploy to wait for the contracts to be verified without having to have a case where it always fails the 1st time until the provider has verified?
m
I think you want these properties:
Copy code
[--retry-while-unknown=TIMES]        # The number of times to retry while there is an unknown verification result (ie. the provider verification is likely still running)
                                           # Default: 0
      [--retry-interval=SECONDS]           # The time between retries in seconds. Use in conjuction with --retry-while-unknown
                                           # Default: 10
👀 2
✅ 2
p
Thanks Matt, we're going to give this a go today!
a
Works nicely! thank you 🙂
m
🙌
thank you 1