I have written some cucumber tests to test my service which calls multiple services one after another. So I have to put a delay in between to wait for all the calls to finish, while I run the tests locally. And it passes. But when the same tests went to Jenkins, it's failing.
I am using wiremocks to mock the services, and its mocking properly. But its not working properly in jenkins.