Skip to content

Commit

Permalink
tests(system): adds check for creationTime (#752)
Browse files Browse the repository at this point in the history
* tests(system): adds check for creationTime

* refactor: replaces parsInt with Number
  • Loading branch information
steffnay committed Jun 12, 2020
1 parent bfb74ad commit dd4c040
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion system-test/bigquery.ts
Expand Up @@ -1701,7 +1701,8 @@ describe('BigQuery', () => {
const deleteDatasetPromises = datasets
.filter(async dataset => {
const [metadata] = await dataset.getMetadata();
return isResourceStale(parseInt(metadata.creationTime));
const creationTime = Number(metadata.creationTime);
return creationTime && isResourceStale(creationTime);
})
.map(dataset => {
return dataset.delete({force: true});
Expand Down

0 comments on commit dd4c040

Please sign in to comment.