Reputation: 1
CircleCI shows Too long with no output (exceeded 20m0s): context deadline exceeded Error when test is uploaded
I have rerun the tets cases but not worked.
Upvotes: 0
Views: 389
Reputation: 146
Mostly this happens when you run your tests and they don’t close connections opened to servers/sockets etc. Could you provide more details about the type of tests you have written? But it’s worth checking the few Items:
When running tests locally do you see they finished running with following message?
My Issue was:
I had created a server instance in my before
block but didn’t close it after
the tests end
before(async () => {
server = new MockServer();
server.init(9004);
});
after(async () => {
server.close(); // was missing this line
});
I hope it helps! If not you then maybe someone else!!
Upvotes: 0