From 368e2f559caa711375d93bb4c959c248442c9652 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Fri, 27 Sep 2024 12:49:51 +0200 Subject: [PATCH] buildx(history): use Util.sleep Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- src/buildx/history.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/buildx/history.ts b/src/buildx/history.ts index 4898e9d..13dc886 100644 --- a/src/buildx/history.ts +++ b/src/buildx/history.ts @@ -26,6 +26,7 @@ import {Context} from '../context'; import {Docker} from '../docker/docker'; import {Exec} from '../exec'; import {GitHub} from '../github'; +import {Util} from '../util'; import {ExportRecordOpts, ExportRecordResponse, Summaries} from '../types/buildx/history'; @@ -85,7 +86,7 @@ export class History { fs.mkdirSync(outDir, {recursive: true}); // wait 3 seconds to ensure build records are finalized: https://github.com/moby/buildkit/pull/5109 - await new Promise(resolve => setTimeout(resolve, 3000)); + await Util.sleep(3); const buildxInFifoPath = Context.tmpName({ template: 'buildx-in-XXXXXX.fifo',