test: fix tests in IE

This commit is contained in:
Damien Arrachequesne
2020-09-30 17:42:32 +02:00
parent 67c54b8344
commit 7f73a289f5

View File

@@ -436,7 +436,7 @@ describe('connection', function () {
it('should still try to reconnect twice after opening another socket asynchronously', function (done) {
var manager = io.Manager(
`http://localhost:9823`,
'http://localhost:9823',
{ reconnect: true, reconnectionAttempts: 2 }
);
var delay = Math.floor(manager.reconnectionDelay() * manager.randomizationFactor() * 0.5);