Dany Marques
05/05/2022, 5:55 PMit.each(['provider 1', 'provider 2'])('testing %s', provider => pactWith({
consumer: 'foobar',
provider: provider,
port: 45678
}, () ..... ));
But it fails because I think the Pact mock server is not shut down between each test and then I get: Port '45678' is already in use by another process.
Any idea ?Yousaf Nabi (pactflow.io)
Dany Marques
05/05/2022, 6:44 PMtestURL: <http://localhost:45678>
Dany Marques
05/05/2022, 6:53 PM/foo/bar/rest/api/v1/todos/
Yousaf Nabi (pactflow.io)
Dany Marques
05/05/2022, 7:59 PMYousaf Nabi (pactflow.io)
it.each([['provider 1',45678], ['provider 2',45679],)('testing %s', (provider,port) => pactWith({
consumer: 'foobar',
provider,
port
}, () ..... ));
Dany Marques
05/05/2022, 8:20 PMDany Marques
05/05/2022, 8:21 PMYousaf Nabi (pactflow.io)
Dany Marques
05/05/2022, 8:38 PMYousaf Nabi (pactflow.io)
Dany Marques
05/05/2022, 9:01 PM