forwardemail / forwardemail/supertest

socket hang up error when waiting for response for more then 2.5 minutes

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

Description

I am running simple test which suppose to discover devise on the network. If discovering process taking more then 2.5 min hitting socket hang up error if less test runs successfully.

describe(`run discovery from scratch TG(model: XGH1) ${ip}`, () => {
it('clean db', async () => {
await runShellScript(no, pa, db);
});
it('should return true if device discovered successfully', async () => {
const dresult = await request.put(`/resources/discover/${ip}/${db}`);
dresult.ok.should.be.true;
});
});

Received error:
1) run discovery from scratch TG(model: XGH1):
should return true if device discovered successfully:
Error: socket hang up
at createHangUpError (_http_client.js:336:15)
at Socket.socketOnEnd (_http_client.js:429:23)
at endReadableNT (_stream_readable.js:1106:12)
at process._tickCallback (internal/process/next_tick.js:114:19)

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.