From c4f869b3d9bb2ff00d6345132b89d922260cc826 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Gronowski?= Date: Thu, 17 Oct 2024 15:52:30 +0200 Subject: [PATCH] increase test timeout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Paweł Gronowski --- __tests__/docker/install.test.itg.ts | 2 +- src/docker/install.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/__tests__/docker/install.test.itg.ts b/__tests__/docker/install.test.itg.ts index db73638d..a14d34fc 100644 --- a/__tests__/docker/install.test.itg.ts +++ b/__tests__/docker/install.test.itg.ts @@ -70,5 +70,5 @@ aarch64:https://cloud.debian.org/images/cloud/bookworm/20231013-1532/debian-12-g await Docker.printInfo(); await install.tearDown(); })()).resolves.not.toThrow(); - }, 1200000); + }, 10 * 60 * 1000); }); diff --git a/src/docker/install.ts b/src/docker/install.ts index c86e32c8..75811b79 100644 --- a/src/docker/install.ts +++ b/src/docker/install.ts @@ -34,6 +34,7 @@ import {Util} from '../util'; import {limaYamlData, dockerServiceLogsPs1, setupDockerWinPs1} from './assets'; import {GitHubRelease} from '../types/github'; import {HubRepository} from '../hubRepository'; +import {randomUUID} from "node:crypto"; export interface InstallSourceImage { type: 'image'; @@ -202,7 +203,9 @@ export class Install { // this.toolDir is a very long path which causes trouble when mounting it in lima. // Copy it to a shorter path. - const limaToolsDir = '/tmp/lima'; + // Random path + const limaToolsDir = '/tmp/lima/' + randomUUID(); + await io.mkdirP(limaToolsDir); await core.group('Copy tools', async () => { await Exec.exec('cp', ['-rv', this.toolDir, limaToolsDir]);