Skip to content

Commit

Permalink
Add extra sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
3750 committed Nov 16, 2023
1 parent 76032f5 commit a13958b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ class EmailsByMessageBrokerResourceTest extends BaseTestWithRest {
given:
def email = EmailRequest.of(subject, sender, "[email protected]")
hermesMock.define().jsonTopic(topic, aResponse().build())
// sleep to simulate long response
sleep 500

when:
def result = restClient.post("/emails", email, EmailRequest)
Expand Down

0 comments on commit a13958b

Please sign in to comment.