Skip to content

Commit ccc7548

Browse files
authored
Merge pull request #465 from crazy-max/use-util-sleep
buildx(history): use Util.sleep
2 parents 5f0354d + 368e2f5 commit ccc7548

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/buildx/history.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import {Context} from '../context';
2626
import {Docker} from '../docker/docker';
2727
import {Exec} from '../exec';
2828
import {GitHub} from '../github';
29+
import {Util} from '../util';
2930

3031
import {ExportRecordOpts, ExportRecordResponse, Summaries} from '../types/buildx/history';
3132

@@ -85,7 +86,7 @@ export class History {
8586
fs.mkdirSync(outDir, {recursive: true});
8687

8788
// wait 3 seconds to ensure build records are finalized: https://github.com/moby/buildkit/pull/5109
88-
await new Promise(resolve => setTimeout(resolve, 3000));
89+
await Util.sleep(3);
8990

9091
const buildxInFifoPath = Context.tmpName({
9192
template: 'buildx-in-XXXXXX.fifo',

0 commit comments

Comments
 (0)