test(worktree): avoid assuming a specific free port
This commit is contained in:
parent
41f261eaf5
commit
761dce559d
1 changed files with 1 additions and 1 deletions
|
|
@ -415,7 +415,7 @@ describe("worktree helpers", () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
const config = JSON.parse(fs.readFileSync(path.join(repoRoot, ".paperclip", "config.json"), "utf8"));
|
const config = JSON.parse(fs.readFileSync(path.join(repoRoot, ".paperclip", "config.json"), "utf8"));
|
||||||
expect(config.server.port).toBe(3102);
|
expect(config.server.port).toBeGreaterThan(3101);
|
||||||
expect(config.database.embeddedPostgresPort).not.toBe(54330);
|
expect(config.database.embeddedPostgresPort).not.toBe(54330);
|
||||||
expect(config.database.embeddedPostgresPort).not.toBe(config.server.port);
|
expect(config.database.embeddedPostgresPort).not.toBe(config.server.port);
|
||||||
expect(config.database.embeddedPostgresPort).toBeGreaterThan(54330);
|
expect(config.database.embeddedPostgresPort).toBeGreaterThan(54330);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue