Skip to content

Commit 7b8364d

Browse files
Fix LifecycleTests on Windows
See gh-gh-41352
1 parent 224b069 commit 7b8364d

File tree

1 file changed

+3
-3
lines changed
  • spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/build

1 file changed

+3
-3
lines changed

spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/build/LifecycleTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,11 +344,11 @@ void executeWithSecurityOptionsExecutesPhases(boolean trustBuilder) throws Excep
344344
assertPhaseWasRun("creator", withExpectedConfig("lifecycle-creator-security-opts.json", true));
345345
}
346346
else {
347-
assertPhaseWasRun("analyzer", withExpectedConfig("lifecycle-analyzer-security-opts.json"));
347+
assertPhaseWasRun("analyzer", withExpectedConfig("lifecycle-analyzer-security-opts.json", true));
348348
assertPhaseWasRun("detector", withExpectedConfig("lifecycle-detector.json"));
349-
assertPhaseWasRun("restorer", withExpectedConfig("lifecycle-restorer-security-opts.json"));
349+
assertPhaseWasRun("restorer", withExpectedConfig("lifecycle-restorer-security-opts.json", true));
350350
assertPhaseWasRun("builder", withExpectedConfig("lifecycle-builder.json"));
351-
assertPhaseWasRun("exporter", withExpectedConfig("lifecycle-exporter-security-opts.json"));
351+
assertPhaseWasRun("exporter", withExpectedConfig("lifecycle-exporter-security-opts.json", true));
352352
}
353353
assertThat(this.out.toString()).contains("Successfully built image 'docker.io/library/my-application:latest'");
354354
}

0 commit comments

Comments
 (0)