tweaked the test suite to accommodate to windows delays
This commit is contained in:
parent
d3181ddafe
commit
387fa3b0ea
1 changed files with 11 additions and 2 deletions
|
@ -2,9 +2,18 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const ipc = require('../../../../node-ipc');
|
const ipc = require('../../../../node-ipc');
|
||||||
|
const os = require('os').platform();
|
||||||
|
|
||||||
describe('TCP Socket verification of client',
|
describe('TCP Socket verification of client',
|
||||||
function TCPClientSpec(){
|
function TCPClientSpec(){
|
||||||
|
|
||||||
|
var windows_delay = 0;
|
||||||
|
|
||||||
|
if(os === "win32") {
|
||||||
|
windows_delay = 4000;
|
||||||
|
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
|
||||||
|
}
|
||||||
|
|
||||||
it(
|
it(
|
||||||
'Verify retry attempts by TCP client to connect to the server as per the value set in "maxRetries" parameter.',
|
'Verify retry attempts by TCP client to connect to the server as per the value set in "maxRetries" parameter.',
|
||||||
function testIt(done){
|
function testIt(done){
|
||||||
|
@ -41,7 +50,7 @@ describe('TCP Socket verification of client',
|
||||||
done();
|
done();
|
||||||
},
|
},
|
||||||
ipc.config.retry*ipc.config.maxRetries +
|
ipc.config.retry*ipc.config.maxRetries +
|
||||||
ipc.config.retry+ipc.config.retry
|
ipc.config.retry+ipc.config.retry + windows_delay
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -80,7 +89,7 @@ describe('TCP Socket verification of client',
|
||||||
ipc.disconnect('tcpFakeServer');
|
ipc.disconnect('tcpFakeServer');
|
||||||
done();
|
done();
|
||||||
},
|
},
|
||||||
ipc.config.retry*ipc.config.maxRetries
|
ipc.config.retry*ipc.config.maxRetries + windows_delay
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue