Skip to content

Commit a2fb449

Browse files
committed
test(talent): add explicit delay to wait for job indexing
1 parent 7777583 commit a2fb449

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

talent/test/talent.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ describe('Talent Solution Jobs API v4 samples', () => {
4747
const tenantService = new talent.TenantServiceClient();
4848
const companyService = new talent.CompanyServiceClient();
4949
const jobService = new talent.JobServiceClient();
50+
const delay = ms => new Promise(resolve => setTimeout(resolve, ms));
5051

5152
let tenant;
5253
let company;
@@ -141,6 +142,7 @@ describe('Talent Solution Jobs API v4 samples', () => {
141142
it(
142143
'Searches for a job with custom ranking search',
143144
eventually(async () => {
145+
await delay(10000);
144146
console.log(
145147
`node snippet/job_search_custom_ranking_search.js --project_id=${projectId} --tenant_id=${tenantId}`
146148
);

0 commit comments

Comments
 (0)