Skip to content

Commit

Permalink
Tear down after each test
Browse files Browse the repository at this point in the history
  • Loading branch information
joshaber committed Sep 14, 2022
1 parent 971abe4 commit d830d48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/cli.exec.base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export function describeTests2({ text, options }: BuildKitOption) {
describe(`Dockerfile with post*Commands specified [${text}]`, () => {
let containerId: string | null = null;
const testFolder = `${__dirname}/configs/dockerfile-with-target`;
after(async () => await devContainerDown({ containerId }));
afterEach(async () => await devContainerDown({ containerId }));
it('should have all command markers at appropriate times', async () => {
containerId = (await devContainerUp(cli, testFolder, options)).containerId;
// Should have all markers (Create + Start + Attach)
Expand Down

0 comments on commit d830d48

Please sign in to comment.