Skip to content

Commit 60d1f7a

Browse files
authored
Merge pull request #241 from parthlambdatest/Dot-4397
[Dot-4397] fetch result fix
2 parents 8dbc96f + 2625c09 commit 60d1f7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ export async function startPolling(ctx: Context, build_id: string, baseline: boo
262262
if (ctx.options.fetchResults && ctx.options.fetchResultsFileName && ctx.build && ctx.build.id && resp.build.build_id === ctx.build.id) {
263263
fileName = `${ctx.options.fetchResultsFileName}`
264264
}
265-
await fs.writeFile(`${fileName}`, JSON.stringify(resp, null, 2));
265+
fs.writeFileSync(`${fileName}`, JSON.stringify(resp, null, 2));
266266
ctx.log.debug(`Updated results in ${fileName}`);
267267

268268
if (resp.build.build_status_ind === constants.BUILD_COMPLETE || resp.build.build_status_ind === constants.BUILD_ERROR) {

0 commit comments

Comments
 (0)