AliSoftware / OHHTTPStubs

Stub your network requests easily! Test your apps with fake network data and custom response time, response code and headers!
MIT License
5.03k stars 602 forks source link

[issue 309] Added containsQueryParamsMatching(...) matcher. #327

Open mcarti opened 3 years ago

mcarti commented 3 years ago

Checklist

Description

New matcher added: containsQueryParamsMatching(...). This matcher checks the presence of a list of parameters matching the RegExs given in a dictionary.

Motivation and Context

I suggested to share this new matcher in the issue #309. The need is for checking the presence of dynamic parameters as timestamps or languages for example. Since there was no entry in the documentation for the containsQueryParams matcher, I didn't add one for this matcher.

mcarti commented 3 years ago

Hello The Job #845.20 failed with the error:

Test Case '-[NSURLSessionTests test_NSURLSessionEphemeralConfig]' started.

/Users/travis/build/AliSoftware/OHHTTPStubs/Tests/OHHTTPStubsTests/NSURLSessionTests.m:199: error: -[NSURLSessionTests test_NSURLSessionEphemeralConfig] : Asynchronous wait failed: Exceeded timeout of 0.5 seconds, with unfulfilled expectations: "NSURLSessionDataTask completed".

Test Case '-[NSURLSessionTests test_NSURLSessionEphemeralConfig]' failed (0.868 seconds).

It doesn't seem to be related to the object of the PR, more a network issue. Is there a way to relaunch the build chain?