Skip to content

Commit c3c0407

Browse files
committed
fix: update SDK test files to use new WaitForJobOptions interface
Update FAST_WAIT_OPTIONS in content/export and site-archive tests to use pollIntervalSeconds and injectable sleep instead of the removed pollInterval property.
1 parent 1e8324e commit c3c0407

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/b2c-tooling-sdk/test/operations/content/export.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const WEBDAV_BASE = `https://${TEST_HOST}/on/demandware.servlet/webdav/Sites`;
2525
const OCAPI_BASE = `https://${TEST_HOST}/s/-/dw/data/v25_6`;
2626

2727
/** Short poll interval for fast tests */
28-
const FAST_WAIT_OPTIONS = {pollInterval: 10};
28+
const FAST_WAIT_OPTIONS = {pollIntervalSeconds: 1, sleep: () => Promise.resolve()};
2929

3030
/**
3131
* Library XML with attributes on <data> elements so xml2js produces

packages/b2c-tooling-sdk/test/operations/jobs/site-archive.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ const TEST_HOST = 'test.demandware.net';
2525
const WEBDAV_BASE = `https://${TEST_HOST}/on/demandware.servlet/webdav/Sites`;
2626
const OCAPI_BASE = `https://${TEST_HOST}/s/-/dw/data/v25_6`;
2727

28-
// Use short poll interval for fast tests (default is 3000ms)
29-
const FAST_WAIT_OPTIONS = {pollInterval: 10};
28+
// Use short poll interval for fast tests
29+
const FAST_WAIT_OPTIONS = {pollIntervalSeconds: 1, sleep: () => Promise.resolve()};
3030

3131
describe('operations/jobs/site-archive', () => {
3232
const server = setupServer();

0 commit comments

Comments
 (0)