Skip to content

Commit a71edf3

Browse files
committed
Try to make Docker tunnel cleanup test less flaky
Sometimes the container does still exist - strongly looks like a race condition since we're dependent on the Docker engine state changes here.
1 parent e128ced commit a71edf3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/integration/interceptors/docker-terminal-interception.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,8 @@ Successfully built <hash>
385385
// Then shut everything down:
386386
await stopDockerInterceptionServices(server.port, ruleParams);
387387

388+
await delay(100);
389+
388390
// Tunnel is automatically removed:
389391
tunnel = await docker.getContainer(`httptoolkit-docker-tunnel-${server.port}`).inspect().catch(e => e);
390392
expect(tunnel).to.be.instanceOf(Error)

0 commit comments

Comments
 (0)