From 73a15cc0939899e77418cafbb9e0c817aa898178 Mon Sep 17 00:00:00 2001 From: Christof Marti Date: Wed, 20 Mar 2024 09:16:58 +0100 Subject: [PATCH] Investigate test failures --- .../dockerfile-with-v2-oci-features/.devcontainer.json | 2 +- src/test/container-features/e2e.test.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/test/container-features/configs/dockerfile-with-v2-oci-features/.devcontainer.json b/src/test/container-features/configs/dockerfile-with-v2-oci-features/.devcontainer.json index c9d0dcd64..9eda81146 100644 --- a/src/test/container-features/configs/dockerfile-with-v2-oci-features/.devcontainer.json +++ b/src/test/container-features/configs/dockerfile-with-v2-oci-features/.devcontainer.json @@ -7,7 +7,7 @@ }, "features": { "terraform": "latest", - "ghcr.io/devcontainers/features/docker-in-docker@sha256:e32e8937c87345ff7a937d22cacb7f395d41deffde9943291ef3cc0ac91a8ac6": {}, + "ghcr.io/devcontainers/features/docker-in-docker@sha256:440bdb81cf8af43f3e922450d33db9775c1097340557a5b7b6fe705bc758c5ef": {}, "node": "16" } } \ No newline at end of file diff --git a/src/test/container-features/e2e.test.ts b/src/test/container-features/e2e.test.ts index 31f523fee..7976b0c95 100644 --- a/src/test/container-features/e2e.test.ts +++ b/src/test/container-features/e2e.test.ts @@ -69,10 +69,12 @@ describe('Dev Container Features E2E (remote)', function () { for (let i = 2; i >= 0; i--) { try { const res = await shellExec(`${cli} exec --workspace-folder ${testFolder} docker ps`); + await shellExec(`${cli} exec --workspace-folder ${testFolder} ps ax`); assert.isNull(res.error); assert.match(res.stdout, /CONTAINER ID/); break; } catch (err) { + await shellExec(`${cli} exec --workspace-folder ${testFolder} ps ax`); if (i === 0) { throw err; } @@ -111,10 +113,12 @@ describe('Dev Container Features E2E (remote)', function () { for (let i = 2; i >= 0; i--) { try { const res = await shellExec(`${cli} exec --workspace-folder ${testFolder} docker ps`); + await shellExec(`${cli} exec --workspace-folder ${testFolder} ps ax`); assert.isNull(res.error); assert.match(res.stdout, /CONTAINER ID/); break; } catch (err) { + await shellExec(`${cli} exec --workspace-folder ${testFolder} ps ax`); if (i === 0) { throw err; }