Skip to content

Commit

Permalink
fix: Force JarCache to be on on JarCache tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Borja Lorente committed Oct 24, 2023
1 parent 936e132 commit 3745dd2
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 3745dd2

Please sign in to comment.