Skip to content

Commit

Permalink
chore: update the waiting time for publishing post
Browse files Browse the repository at this point in the history
  • Loading branch information
guqing authored and halo-dev-bot committed Nov 2, 2023
1 parent e075aba commit c2f35c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ private Mono<Post> awaitPostPublished(String postName) {
})
.switchIfEmpty(Mono.error(
() -> new RetryException("Retry to check post publish status"))))
.retryWhen(Retry.fixedDelay(10, Duration.ofMillis(200))
.retryWhen(Retry.backoff(5, Duration.ofMillis(100))
.filter(t -> t instanceof RetryException));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ void shouldFailIfWaitTimeoutForPublishedStatus() {
.is5xxServerError();

// Verify WebClient retry behavior
verify(client, times(12)).get(eq(Post.class), eq("post-1"));
verify(client, times(7)).get(eq(Post.class), eq("post-1"));
verify(client).update(any(Post.class));
}

Expand Down

0 comments on commit c2f35c9

Please sign in to comment.