Skip to content

Commit 2b3dcfa

Browse files
committed
test: bound legacy contender admission observation
1 parent ba4a5c2 commit 2b3dcfa

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
@@ -528,8 +528,11 @@ test('a legacy contender cannot unlink a hardened owner while it delays metadata
528528
try {
529529
await waitForCutoverFixture(() => fs.existsSync(path.join(paths.baseDir, 'registration-held')));
530530
legacy = spawnLegacyDaemonFixture(paths);
531-
await legacy.exited;
531+
await waitForCutoverFixture(() =>
532+
fs.existsSync(path.join(paths.baseDir, 'legacy-disposition.json')),
533+
);
532534
assert.equal(legacyDisposition(paths), false);
535+
await legacy.exited;
533536
const claim = inspectProcessLock(paths.lockPath);
534537
assert.equal(claim.state, 'held');
535538
if (claim.state !== 'held') throw new Error('current owner lost its claim');

0 commit comments

Comments
 (0)