Skip to content

Commit

Permalink
test: fix sample test for listJobs (#734)
Browse files Browse the repository at this point in the history
* test: fix sample test for listJobs

* test: fix sample test for listJobs

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
alexander-fenster and gcf-owl-bot[bot] authored Aug 19, 2022
1 parent 9ed7e38 commit 5854387
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions dlp/system-test/jobs.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,8 @@ describe('test', () => {
};

// Create job
return dlp.createDlpJob(request).then(response => {
return response[0].name;
});
const [response] = await dlp.createDlpJob(request);
return response.name;
};

// Create a test job
Expand Down Expand Up @@ -110,7 +109,9 @@ describe('test', () => {
it('should list jobs', async function () {
this.retries(5);
await delay(this.test);
const output = execSync(`node listJobs.js ${projectId} 'state=DONE'`);
const output = execSync(
`node listJobs.js ${projectId} 'state=DONE' RISK_ANALYSIS_JOB`
);
assert.match(
output,
/Job projects\/(\w|-)+\/locations\/global\/dlpJobs\/\w-\d+ status: DONE/
Expand Down

0 comments on commit 5854387

Please sign in to comment.