Skip to content

Commit 3d86291

Browse files
mchwangclaude
andcommitted
Track the rogue-volume container before its create (#189)
Review round 41: should the create land after its client is killed, afterAll removes the container by name before the label-less volume it mounts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 29744c7 commit 3d86291

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎test/agent-container.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,8 @@ describe('real Docker agent isolation', () => {
484484
volumes.add(rogue);
485485
docker('volume', 'create', rogue);
486486
const rogueArgs = valid.args.map(value => value.replace(data.filesystems.workVolume, rogue));
487-
docker(...rogueArgs); containers.add(valid.name);
487+
// Tracked before the create: should it land late, afterAll removes it before the volume it mounts.
488+
containers.add(valid.name); docker(...rogueArgs);
488489
await expect(validateContainer(valid.name, valid)).rejects.toThrow('captured identity');
489490
docker('rm', '--force', valid.name); containers.delete(valid.name);
490491
} finally {

0 commit comments

Comments
 (0)