Skip to content

Commit 3b7cfdc

Browse files
committed
Fix tests
1 parent c9642c4 commit 3b7cfdc

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

buildpacks/maven/tests/integration/misc.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -117,17 +117,18 @@ fn no_internal_maven_options_logging() {
117117
#[test]
118118
#[ignore = "integration test"]
119119
fn descriptive_error_message_on_failed_build() {
120-
TestRunner::default().build(default_build_config("test-apps/app-with-compile-error").expected_pack_result(PackResult::Failure), |context| {
120+
TestRunner::default().build(
121+
default_build_config("test-apps/app-with-compile-error")
122+
.expected_pack_result(PackResult::Failure),
123+
|context| {
121124
assert_contains!(context.pack_stderr, "[INFO] BUILD FAILURE");
122125

123-
assert_contains!(
124-
context.pack_stderr,
125-
"[Error: Unexpected Maven exit code]"
126-
);
126+
assert_contains!(context.pack_stderr, "! ERROR: Unexpected Maven exit code");
127127

128128
assert_contains!(
129129
context.pack_stderr,
130-
"Maven unexpectedly exited with code '1'. The most common reason for this are\nproblems with your application code and/or build configuration."
130+
"Maven unexpectedly exited with code '1'. The most common reason for this are"
131131
);
132-
});
132+
},
133+
);
133134
}

buildpacks/maven/tests/integration/versions.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ fn with_wrapper_and_unknown_system_properties() {
4444
UNKNOWN_MAVEN_VERSION, &path
4545
)).expected_pack_result(PackResult::Failure),
4646
|context| {
47-
assert_contains!(context.pack_stderr, "[Error: Unsupported Maven version]");
47+
assert_contains!(context.pack_stderr, "! ERROR: Unsupported Maven version");
4848
assert_contains!(context.pack_stderr, &format!("You have defined an unsupported Maven version ({UNKNOWN_MAVEN_VERSION}) in the system.properties file."));
4949
},
5050
);
@@ -80,7 +80,7 @@ fn without_wrapper_and_unknown_system_properties() {
8080
set_maven_version_app_dir_preprocessor(UNKNOWN_MAVEN_VERSION, &path);
8181
}).expected_pack_result(PackResult::Failure),
8282
|context| {
83-
assert_contains!(context.pack_stderr, "[Error: Unsupported Maven version]");
83+
assert_contains!(context.pack_stderr, "! ERROR: Unsupported Maven version");
8484
assert_contains!(context.pack_stderr, &format!("You have defined an unsupported Maven version ({UNKNOWN_MAVEN_VERSION}) in the system.properties file."));
8585
},
8686
);

0 commit comments

Comments
 (0)