Skip to content

Commit

Permalink
fix: Force JarCache to be on on JarCache tests (#5530)
Browse files Browse the repository at this point in the history
  • Loading branch information
blorente authored Oct 24, 2023
1 parent 8d9e657 commit 206c3d3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ protected void initTest(Container applicationServices, Container projectServices
.registerExtension(new BlazeJavaSyncPlugin(), testDisposable);
registerExtensionPoint(BlazeLibrarySorter.EP_NAME, BlazeLibrarySorter.class);
applicationServices.register(BlazeJavaUserSettings.class, new BlazeJavaUserSettings());
BlazeJavaUserSettings.getInstance().setUseJarCache(true); // It's turned off by default for Bazel users, but we absolutely want to test it here.
applicationServices.register(ExperimentService.class, new MockExperimentService());
applicationServices.register(BlazeExecutor.class, new MockBlazeExecutor());
}
Expand All @@ -135,7 +136,7 @@ protected void initTest(Container applicationServices, Container projectServices
protected BuildSystemProvider createBuildSystemProvider() {
return new BuildSystemProviderWrapper(
FakeBuildSystemProvider.builder()
.setBuildSystem(FakeBuildSystem.builder(BuildSystemName.Blaze).build())
.setBuildSystem(FakeBuildSystem.builder(BuildSystemName.Bazel).build())
.build());
}

Expand Down

0 comments on commit 206c3d3

Please sign in to comment.