mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Notebook Port Test Fix (#5433)
* Test fixes to not rely on 7100 * PR comments
This commit is contained in:
@@ -26,8 +26,8 @@ describe('Ports', () => {
|
|||||||
|
|
||||||
// once listening, find another free port and assert that the port is different from the opened one
|
// once listening, find another free port and assert that the port is different from the opened one
|
||||||
ports.findFreePort(7000, 50, 300000).then(freePort => {
|
ports.findFreePort(7000, 50, 300000).then(freePort => {
|
||||||
assert.ok(freePort >= 7000 && freePort !== initialPort);
|
|
||||||
server.close();
|
server.close();
|
||||||
|
assert.ok(freePort >= 7000 && freePort !== initialPort);
|
||||||
|
|
||||||
done();
|
done();
|
||||||
}, err => done(err));
|
}, err => done(err));
|
||||||
@@ -51,11 +51,10 @@ describe('Ports', () => {
|
|||||||
// once listening, find another free port and assert that the port is different from the opened one
|
// once listening, find another free port and assert that the port is different from the opened one
|
||||||
options.minPort = initialPort;
|
options.minPort = initialPort;
|
||||||
options.maxRetriesPerStartPort = 1;
|
options.maxRetriesPerStartPort = 1;
|
||||||
options.totalRetryLoops = 50;
|
options.totalRetryLoops = 10;
|
||||||
ports.strictFindFreePort(options).then(freePort => {
|
ports.strictFindFreePort(options).then(freePort => {
|
||||||
assert.ok(freePort >= 7100 && freePort !== initialPort);
|
|
||||||
server.close();
|
server.close();
|
||||||
|
assert(freePort !== initialPort, `Expected freePort !== initialPort, Actual: ${freePort}`);
|
||||||
done();
|
done();
|
||||||
}, err => done(err));
|
}, err => done(err));
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user