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
In which order are mocks evaluated?
When the httpmock server receives a request that matches multiple mocks, they are evaluated in reverse order of their definition. This means the most recently defined mock takes precedence and will be used.
This is not correct. As mentioned in #60 (comment) they are matched in order of definition.
If they were indeed matched in reverse order of definition, then that would provide a solution to #94. I think it would be the more intuitive order, but it is not the current behaviour.
The text was updated successfully, but these errors were encountered:
From https://httpmock.rs/miscellaneous/faq/
This is not correct. As mentioned in #60 (comment) they are matched in order of definition.
If they were indeed matched in reverse order of definition, then that would provide a solution to #94. I think it would be the more intuitive order, but it is not the current behaviour.
The text was updated successfully, but these errors were encountered: