From 691161fc499320e9182aad98593e88dabf615608 Mon Sep 17 00:00:00 2001 From: Matteo Silvestri Date: Thu, 1 Sep 2022 17:10:27 +0200 Subject: [PATCH] revert failed test Signed-off-by: Matteo Silvestri --- .../src/util/KubernetesContainerRunner.test.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/backend-common/src/util/KubernetesContainerRunner.test.ts b/packages/backend-common/src/util/KubernetesContainerRunner.test.ts index 9ac5e244fd..11c4017ca8 100644 --- a/packages/backend-common/src/util/KubernetesContainerRunner.test.ts +++ b/packages/backend-common/src/util/KubernetesContainerRunner.test.ts @@ -102,18 +102,17 @@ describeIfKubernetes('KubernetesContainerRunner', () => { }, }; const containerRunner = new KubernetesContainerRunner(options); - const hostDir = '/notWorkdir/app'; const logStream = new PassThrough(); const runOptions: RunContainerOptions = { imageName: 'golang:1.17', args: ['echo', 'hello world'], logStream, mountDirs: { - hostdir: '/app', + '/notWorkdir/app': '/app', }, }; await expect(containerRunner.runContainer(runOptions)).rejects.toThrow( - `Mounted '${hostDir}' dir should be subdirectories of '${ + `Mounted /notWorkdir/app dir should be subdirectories of '${ options!.mountBase!.basePath }`, );