Drain agent snapshot writes before replacement-cancel test cleanup (#9707)
The "failed replacement cancellation preserves an autonomous running state" test deleted its storage directory while the snapshot write for the "running" state could still be in flight. Under CI load that write lands during rmSync and fails the test with ENOTEMPTY. Flush the manager and storage first, as the neighbouring cleanup tests do. Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2bd9e9d87f
commit
c1d7d56b71
1 file changed
+2
@@ -8216,6 +8216,8 @@ test("failed replacement cancellation preserves an autonomous running state", as
|
||||
activeForegroundTurnId: null,
|
||||
});
|
||||
} finally {
|
||||
await manager.flush();
|
||||
await storage.flush();
|
||||
rmSync(workdir, { recursive: true, force: true });
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user