Skip to content

Commit

Permalink
Merge pull request #1406 from bawoodruff/master
Browse files Browse the repository at this point in the history
fix: retry condition for the pactbroker unknown response #1405
  • Loading branch information
uglyog authored Jul 21, 2021
2 parents 8e0157c + f551684 commit 1979dcb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ open class PactBrokerClient(
"canIDeploy: Retrying request as there are unknown results",
config.retryCountWhileUnknown,
config.retryWhileUnknownInterval,
{ result -> result.ok && result.unknown != null && result.unknown > 0 }
{ result -> !result.ok && result.unknown != null && result.unknown > 0 }
) {
when (val result = halClient.getJson(path, false)) {
is Ok<JsonValue> -> {
Expand Down

0 comments on commit 1979dcb

Please sign in to comment.