on-internet
← Community

ECONNREFUSED 127.0.0.1:3000 at TCPConnectWrap.afterConnect [as oncomplete] errno: 'ECONNREFUSED',

Stack Overflow ·

I am running some test on a mocked (facebook/google) strategy but the problem I have is that when I run those tests one by one it's running but when I run them simultaneously they are not working after the first test. The connection of the application fails immediately. I tried to run them in different describes but nothing has changed. I am using nodejs and @passport-next/passport-mocked as a dependency to help me mock those strategies. import chai from 'chai'; import chaiHttp from 'chai-http'; import passport from 'passport'; import '../config/passport'; import { describe, it } from 'mocha';

Comments

Sign in or sign up to comment and upvote.

No comments yet.