Skip to content

Commit d8c4d2e

Browse files
committed
Fix test failure
1 parent 19208f1 commit d8c4d2e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/services/sync.service.integration.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,10 @@ describe("SyncService", () => {
123123
expect(apiService.postPublicImportDirectory).toHaveBeenCalledWith(
124124
expect.objectContaining({ overwriteExisting: false }),
125125
);
126-
expect(apiService.postPublicImportDirectory).toHaveBeenCalledTimes(9);
126+
127+
// The expected number of calls may change if more data is added to the ldif
128+
// Make sure it equals (number of users / 4) + (number of groups / 4)
129+
expect(apiService.postPublicImportDirectory).toHaveBeenCalledTimes(7);
127130

128131
// @ts-expect-error Reset batch size to original state.
129132
constants.batchSize = originalBatchSize;

0 commit comments

Comments
 (0)