Skip to content

Commit febd631

Browse files
committed
test: bound legacy contender admission observation
1 parent a77a5c2 commit febd631

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎src/__tests__/daemon-registration-owner.test.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,8 +542,11 @@ test('a legacy contender cannot unlink a hardened owner while it delays metadata
542542
try {
543543
await waitForCutoverFixture(() => fs.existsSync(path.join(paths.baseDir, 'registration-held')));
544544
legacy = spawnLegacyDaemonFixture(paths);
545-
await legacy.exited;
545+
await waitForCutoverFixture(() =>
546+
fs.existsSync(path.join(paths.baseDir, 'legacy-disposition.json')),
547+
);
546548
assert.equal(legacyDisposition(paths), false);
549+
await legacy.exited;
547550
const claim = inspectProcessLock(paths.lockPath);
548551
assert.equal(claim.state, 'held');
549552
if (claim.state !== 'held') throw new Error('current owner lost its claim');

0 commit comments

Comments
 (0)