mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 22:30:41 +01:00
Inconsistent result with overlapping (duplicate) request #472
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Morshed11218 on GitHub (Dec 3, 2022).
Originally assigned to: @StefH on GitHub.
Hi,
I'm experiencing inconsistent result when it comes to overlapping (duplicate) request. In the WireMock documentation, it states that for a overlapping request, the most recent mock will be returned but I'm not seeing that behavior. What I'm seeing is that the response will sometimes be the first mock or the most recent mock.
Here is the sample code:
I'm expecting 'Hello world duplicate!' all the time but I sometime get 'Hello world!'
Result:
counter 0 value:Hello world!
counter 1 value:Hello world duplicate!
counter 2 value:Hello world!
counter 3 value:Hello world duplicate!
counter 4 value:Hello world!
counter 5 value:Hello world!
counter 6 value:Hello world duplicate!
counter 7 value:Hello world!
counter 8 value:Hello world duplicate!
counter 9 value:Hello world!
counter 10 value:Hello world!
counter 11 value:Hello world!
counter 12 value:Hello world duplicate!
counter 13 value:Hello world!
counter 14 value:Hello world duplicate!
counter 15 value:Hello world duplicate!
counter 16 value:Hello world duplicate!
counter 17 value:Hello world duplicate!
counter 18 value:Hello world!
counter 19 value:Hello world!
@StefH commented on GitHub (Dec 4, 2022):
@Morshed11218
This is indeed wrong. I did fix it.
Can you test a preview version "1.5.12-ci-16783" ?
(https://github.com/WireMock-Net/WireMock.Net/wiki/MyGet-preview-versions)
@Morshed11218 commented on GitHub (Dec 5, 2022):
@StefH
It's working with build "1.5.12-ci-16783". Thanks for the quick fix.