forwardemail / forwardemail/supertest

supertest call times out in travis

Open
#462 4 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
14.4k
Forks
782
PR merge metrics
No merged PRs in 30d

Description

Local build with the cloned repository passes but **travis** build fails.

The _supertest_ _request_()._get_ call to a node js server.js express route times out while the same test works perfectly in the local environment.

The only difference between the travis and the local environment is the _supertest_ package. The **travis.yml** script **npm** installs _supertest_ each time the build is triggered while in the local environment, the _supertest_ package is as it was when I installed it last year!

Uploading node modules folder to the repo and removing the npm install from the before script in travis.yml also did not work.

Is it possible that the _supertest_ **npm** install breaks when travis tries to install it or it installs it in some container that causes a delay and therefore times out? Why would the test timeout otherwise?

![image](https://user-images.githubusercontent.com/804860/36506977-4524cb3c-177e-11e8-88c2-f8479bd0b0e6.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.