Skip to content

Commit 5b77718

Browse files
fix: wait for job finish before deletion (#1071)
Co-authored-by: meredithslota <[email protected]>
1 parent ab55564 commit 5b77718

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

system-test/bigquery.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,9 @@ describe('BigQuery', () => {
660660
};
661661

662662
const [job] = await bigquery.createJob(opts);
663+
// Job must finish before we can delete. Wait for results.
664+
await job.getQueryResults();
665+
663666
const [resp] = await job.delete();
664667
const [exists] = await job.exists();
665668
assert.deepStrictEqual(resp, {});

0 commit comments

Comments
 (0)