Skip to content

Commit c9d7385

Browse files
committed
Fix integration test to not assert on specific Java version.
1 parent 6c40c61 commit c9d7385

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

buildpack_integration_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ func testBuildpackIntegration(t *testing.T, context spec.G, it spec.S) {
110110
})
111111

112112
it("builds an app with a buildpack", func() {
113-
114113
var err error
115114
var logs fmt.Stringer
115+
116116
image, logs, err = pack.WithNoColor().Build.
117117
WithPullPolicy("if-not-present").
118118
WithBuildpacks(
@@ -136,7 +136,7 @@ func testBuildpackIntegration(t *testing.T, context spec.G, it spec.S) {
136136
Expect(err).NotTo(HaveOccurred())
137137

138138
Eventually(container).Should(BeAvailable())
139-
Eventually(container).Should(Serve(ContainSubstring("11.0")).OnPort(8080))
139+
Eventually(container).Should(Serve(ContainSubstring("Hello World! Java version")).OnPort(8080))
140140
})
141141
}
142142

integration/testdata/simple_app/src/main/java/io/paketo/Main.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static void main(String[] args) throws Exception {
1717
server.createContext("/", new HttpHandler(){
1818
@Override
1919
public void handle(HttpExchange ex) throws IOException {
20-
final String body = Runtime.version().toString();
20+
final String body = "Hello World! Java version " + Runtime.version().toString();
2121

2222
OutputStream out = ex.getResponseBody();
2323
ex.sendResponseHeaders(200, body.length());

0 commit comments

Comments
 (0)