You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Expectation is listed in 'active expectation list' after 'timeToLive' is expired.
To Reproduce
Steps to reproduce the behavior:
Set expectation with 'timeToLive' property defined, e.g.:
curl -X PUT 'localhost:1080/mockserver/expectation' \
-d '{
"httpRequest": {
"method": "GET",
"path": "/2345",
},
"httpResponse": {
"body": "This is an example of mocked response"
},
"timeToLive" : {
"timeUnit" : "SECONDS",
"timeToLive" : 30,
"unlimited" : false
}
}'
Wait for a 'timeToLive' to expire;
Check active expectations list.
Expected behavior
Expectation is removed after 'timeToLive' is expired.
Actual behavior
Expectation is not removed from active expectations list after 'timeToLive' is expired. Expectation is removed only after user performed request to MockServer (both matching/non-matching).
The text was updated successfully, but these errors were encountered:
mihalichzh
changed the title
[5.15.0] Expectation is listed in 'active expectation' list after 'timeToLive' is expired.
[5.15.0] Expectation is listed in 'active expectation' list after 'timeToLive' is expired
May 21, 2024
MockServer version: 5.15.0
Describe the bug
Expectation is listed in 'active expectation list' after 'timeToLive' is expired.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expectation is removed after 'timeToLive' is expired.
Actual behavior
Expectation is not removed from active expectations list after 'timeToLive' is expired. Expectation is removed only after user performed request to MockServer (both matching/non-matching).
The text was updated successfully, but these errors were encountered: