Skip to content

Commit 0f5f9a8

Browse files
handle cross-version usage of internal API in all packages
1 parent 2f92f80 commit 0f5f9a8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/performance-tests/test/iModelUtils.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { BriefcaseIdValue, Code } from "@itwin/core-common";
66
import { initOutputFile } from "./TestUtils";
77
import { Point3d, YawPitchRollAngles } from "@itwin/core-geometry";
88
import { IModelTransformerTestUtils } from "@itwin/imodel-transformer/lib/cjs/test/IModelTransformerUtils";
9-
import { getTShirtSizeFromName, TestIModel } from "./TestContext";
9+
import { getTShirtSizeFromName, TestIModel } from "./TestContext";
1010

1111
const outputDir = path.join(__dirname, ".output");
1212

@@ -27,7 +27,9 @@ export function setToStandalone(iModelPath: string) {
2727
nativeDb.resetBriefcaseId(BriefcaseIdValue.Unassigned); // standalone iModels should always have BriefcaseId unassigned
2828
nativeDb.saveLocalValue("StandaloneEdit", JSON.stringify({ txns: true }));
2929
nativeDb.saveChanges(); // save change to briefcaseId
30-
nativeDb.closeIModel();
30+
// handle cross-version usage of internal API
31+
(nativeDb as any)?.closeIModel();
32+
(nativeDb as any)?.closeFile();
3133
}
3234

3335
export function generateTestIModel(iModelParam: IModelParams): TestIModel {

0 commit comments

Comments
 (0)