Skip to content

Commit

Permalink
Fix flacky test (#469)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrepa authored Feb 27, 2025
1 parent 19cbfc5 commit f2058d9
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -737,8 +737,9 @@ Feature: to interact with an http service and setup mocks
"""

Scenario: we can assert a complex request in one line
Given that posting on "http://backend/endpoint" will return a status NOT_FOUND_404
And that after 100ms "http://backend/endpoint" is mocked as:
Given that we allow unhandled mocked requests posting on "http://backend/endpointplop"
And that posting on "http://backend/endpointplop" will return a status NOT_FOUND_404
And that after 100ms "http://backend/endpointplop" is mocked as:
"""yml
request:
method: POST
Expand All @@ -747,7 +748,7 @@ Feature: to interact with an http service and setup mocks
response:
status: ACCEPTED_202
"""
Then within 10000ms a user sending on "http://backend/endpoint" receives:
Then within 10000ms a user sending on "http://backend/endpointplop" receives:
"""yml
request:
method: POST
Expand Down

0 comments on commit f2058d9

Please sign in to comment.