Skip to content

Commit

Permalink
Fix batching tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kian-thompson committed Jun 7, 2022
1 parent 230ce3d commit aa9e53f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/test/test-end-to-end-tests/src/test/batching.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ describeFullCompat("Flushing ops", (getTestObjectProvider) => {
dataObject2map1 = await dataObject2.getSharedObject<SharedMap>(map1Id);
dataObject2map2 = await dataObject2.getSharedObject<SharedMap>(map2Id);

// @ts-expect-error older versions rely on the "setFlushMode" method
if (runtimeOptions?.flushMode !== undefined && dataObject1.context.containerRuntime.setFlushMode) {
// @ts-expect-error older versions rely on the "setFlushMode" method
dataObject1.context.containerRuntime.setFlushMode(runtimeOptions.flushMode);
}

await waitForCleanContainers(dataObject1, dataObject2);
await provider.ensureSynchronized();
}
Expand Down

0 comments on commit aa9e53f

Please sign in to comment.