File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/performance-tests/test Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { BriefcaseIdValue, Code } from "@itwin/core-common";
6
6
import { initOutputFile } from "./TestUtils" ;
7
7
import { Point3d , YawPitchRollAngles } from "@itwin/core-geometry" ;
8
8
import { IModelTransformerTestUtils } from "@itwin/imodel-transformer/lib/cjs/test/IModelTransformerUtils" ;
9
- import { getTShirtSizeFromName , TestIModel } from "./TestContext" ;
9
+ import { getTShirtSizeFromName , TestIModel } from "./TestContext" ;
10
10
11
11
const outputDir = path . join ( __dirname , ".output" ) ;
12
12
@@ -27,7 +27,9 @@ export function setToStandalone(iModelPath: string) {
27
27
nativeDb . resetBriefcaseId ( BriefcaseIdValue . Unassigned ) ; // standalone iModels should always have BriefcaseId unassigned
28
28
nativeDb . saveLocalValue ( "StandaloneEdit" , JSON . stringify ( { txns : true } ) ) ;
29
29
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 ( ) ;
31
33
}
32
34
33
35
export function generateTestIModel ( iModelParam : IModelParams ) : TestIModel {
You can’t perform that action at this time.
0 commit comments