-
-
Notifications
You must be signed in to change notification settings - Fork 388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ShouldHaveCalled gives false negative when called URL ends with "?" #721
Comments
Does |
Confirmed there's a bug here. (As a side note, if you had provided a minimal, isolated example such as below, it would have helped me understand this much sooner. But I got there anyway. 😉) [TestCase("https://api.com/foo?", "https://api.com/foo?")] // fail
[TestCase("https://api.com/foo", "https://api.com/foo?")] // pass
[TestCase("https://api.com/foo?", "https://api.com/foo")] // fail
public async Task bug_721(string actual, string expected) {
using var httpTest = new HttpTest();
var x = await actual.GetAsync();
httpTest.ShouldHaveCalled(expected);
} |
This wasn't a bug actually a bug in |
I am creating unit testing for flur call with multipal SetQueryParam it is throwing error like below
Flurl.Http.Testing.HttpTestException: 'Expected any calls to be made with URL pattern https://stamped.io/api/widget/reviews?, but no matching calls were made.'
Please let me know what is going wrong here.
please check first screen shot is for actual call and second is for unit test
The text was updated successfully, but these errors were encountered: