Skip to content

Commit e4faff0

Browse files
committed
test
Signed-off-by: CrazyMax <[email protected]>
1 parent 39aabd2 commit e4faff0

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

src/docker/install.ts

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,21 @@ export class Install {
227227
await Promise.race([
228228
new Promise<void>((resolve, reject) => {
229229
Exec.exec(`limactl ${limaStartArgs.join(' ')}`, [], {env: envs})
230-
.then(() => resolve())
231-
.catch(reject);
230+
.then(() => {
231+
core.info('limactl command completed successfully');
232+
resolve();
233+
})
234+
.catch(err => {
235+
core.error(`limactl command failed: ${err.message}`);
236+
reject(err);
237+
});
232238
}),
233-
new Promise((_, reject) => setTimeout(() => reject(new Error('Timeout reached')), limaStartTimeout))
239+
new Promise((_, reject) => {
240+
setTimeout(() => {
241+
core.error('Timeout reached');
242+
reject(new Error('Timeout reached'));
243+
}, limaStartTimeout);
244+
})
234245
]);
235246
} catch (e) {
236247
fsp
@@ -249,6 +260,7 @@ export class Install {
249260
.catch(() => {
250261
// ignore
251262
});
263+
await Exec.exec(`limactl delete ${this.limaInstanceName}`, [], {env: envs});
252264
throw e;
253265
}
254266
});

0 commit comments

Comments
 (0)