Skip to content

Commit

Permalink
Split testTransformUpdateRewrite into two parts: non-dryrun and dryru…
Browse files Browse the repository at this point in the history
…n. (#81711) (#81720)
  • Loading branch information
przemekwitek committed Dec 14, 2021
1 parent 7d03826 commit e753bba
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,11 @@ public void testTransformUpdateRewrite() throws InterruptedException {
assertEquals(stateDoc.getTransformStats(), storedDocAndVersion.v1().getTransformStats());
}
);
}

public void testTransformUpdateDryRun() throws InterruptedException {
InMemoryTransformConfigManager transformConfigManager = new InMemoryTransformConfigManager();

// same as dry run
TransformConfig oldConfigForDryRunUpdate = TransformConfigTests.randomTransformConfig(
randomAlphaOfLengthBetween(1, 10),
VersionUtils.randomVersionBetween(
Expand All @@ -284,6 +287,7 @@ public void testTransformUpdateRewrite() throws InterruptedException {
config -> {}
);

TransformConfigUpdate update = TransformConfigUpdate.EMPTY;
assertUpdate(
listener -> TransformUpdater.updateTransform(
licenseState,
Expand Down

0 comments on commit e753bba

Please sign in to comment.