Skip to content

Commit

Permalink
Changed Elements Test Fix (#1069)
Browse files Browse the repository at this point in the history
* fix: test changed elements processing by starting at baseline since now we only support rolling forward.

* rush change

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
diegopinate and mergify[bot] committed Mar 30, 2021
1 parent b7dfabd commit 25fa236
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
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

0 comments on commit 25fa236

Please sign in to comment.