httpmock icon indicating copy to clipboard operation
httpmock copied to clipboard

t.Parallel()

Open OlexandrPodustov opened this issue 2 years ago • 1 comments

at the moment table tests and two different tests are not able to be run in parallel mode (with t.Parallel()). Any plans on fixing this?

OlexandrPodustov avatar May 11 '22 12:05 OlexandrPodustov

If you use a different MockTransport instance in each test, it should. If you use the global one (DefaultTransport), of course it cannot. Do you have a simple test case reproducing the problem?

maxatome avatar May 11 '22 12:05 maxatome