cancel
Showing results for 
Search instead for 
Did you mean: 

Opa Test: Timeout in Jenkins but pass in local environement

former_member275963
Discoverer
0 Kudos

I run the opa in localhost and it can pass, but it always get time out error in Jenkins pipeline, i try to enlarge the timeout setting but it does not work.

Current opa.extendConfig has been enlarged to autoWait: true, timeout: 1000

Could anyone share the potential reason why it gets timeout and possible solution? Thanks...

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member603382
Participant
0 Kudos

Hi Lisa,

I do not know if this can change the result, but I will make you aware of it. Is the timeout valid? Last time I checked, the timeout reaches 90 seconds before QUnit stops the process (the timeout is in seconds, not in milliseconds).

Also, you might want to check if there is an image that is offered in the Jenkins' files. An image is usually offered to let you know when and what the error was at the moment of the crash.

You could also try to run the tests locally and see for yourself what is the error. If there is a .war file offered on Jenkins, you could do it. You would need Apache Tomcat and that .war file. (see https://stackoverflow.com/questions/5109112/how-to-deploy-a-war-file-in-tomcat-7 ) If that does not work, then place that file into webapps/ROOT/ and retry the same URL.

I hope you will find your answer this way.

Regards,

Alex