I have some tests where I pass data to an endpoint and then make another call to verify the data is correct. I repeat this a number of times with different data sets and sometimes the data verification call is made before the data setting call is completed.
The first call is to an internal service that calls a number of other services and so it can take up to 20s for the call to return a response. The second call is almost instantaneous.
When I run the tests using newman locally then the calls are handled correctly and the tests pass. When the tests are run using jenkins and newman then some of the tests fail intermittently as the 2nd call is run before the 1st is completed and the data is not correct.