Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed Elements Test Fix #1069

Merged
merged 4 commits into from
Mar 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"packageName": "@bentley/imodeljs-backend",
"comment": "Fix tests for changed elements processing",
"type": "none"
}
],
"packageName": "@bentley/imodeljs-backend",
"email": "4107657+diegopinate@users.noreply.github.com"
}
6 changes: 3 additions & 3 deletions core/backend/src/test/integration/ChangedElements.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
import { DbResult, GuidString } from "@bentley/bentleyjs-core";
import { IModelError } from "@bentley/imodeljs-common";
import { IModelError, IModelVersion } from "@bentley/imodeljs-common";
import { TestUsers, TestUtility } from "@bentley/oidc-signin-tool";
import { assert } from "chai";
import { ChangedElementsManager } from "../../ChangedElementsManager";
import { AuthorizedBackendRequestContext, BriefcaseManager, ChangedElementsDb, IModelHost, IModelJsFs, ProcessChangesetOptions } from "../../imodeljs-backend";
import { IModelTestUtils } from "../IModelTestUtils";
import { HubUtility } from "./HubUtility";

describe.skip("ChangedElements (#integration)", () => {
describe("ChangedElements (#integration)", () => {
let requestContext: AuthorizedBackendRequestContext;
let testContextId: GuidString;
let testIModelId: GuidString;
Expand All @@ -34,7 +34,7 @@ describe.skip("ChangedElements (#integration)", () => {
if (IModelJsFs.existsSync(cacheFilePath))
IModelJsFs.removeSync(cacheFilePath);

const iModel = await IModelTestUtils.downloadAndOpenCheckpoint({ requestContext, contextId: testContextId, iModelId: testIModelId });
const iModel = await IModelTestUtils.downloadAndOpenCheckpoint({ requestContext, contextId: testContextId, iModelId: testIModelId, asOf: IModelVersion.first().toJSON() });
const changeSets = await IModelHost.iModelClient.changeSets.get(requestContext, testIModelId);
assert.exists(iModel);

Expand Down