experimental workaround for testing cluster on travis

This commit is contained in:
Konstantin Pogorelov
2019-04-05 17:56:22 +02:00
parent 6b49ffab08
commit e68466d7af

View File

@@ -472,7 +472,10 @@ describe('index', () => {
const agent = supertest(app);
// create a fake worker, which would not respond in time
cluster.workers = [{send: () => {}}];
cluster.workers = [{
isConnected: () => true,
send: () => {}
}];
const errorSpy = spyOn(console, 'error'); // mute console.error