Skip to content

Commit f24bcb8

Browse files
authored
Fix ProcessCredentialsProviderTest after JDK21 error message change (#6784)
1 parent eba01f1 commit f24bcb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/auth/src/test/java/software/amazon/awssdk/auth/credentials/ProcessCredentialsProviderTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,8 @@ void commandAsListOfStrings_isNotExecutedInAShell() {
355355
// executed not in a shell
356356
assertThat(e.getCause()).isInstanceOf(IOException.class);
357357
assertThat(e.getCause().getMessage())
358-
.isEqualTo("Cannot run program \"echo \"Hello, World!\" > output.txt; rm output.txt\": error=2, "
359-
+ "No such file or directory");
358+
.startsWith("Cannot run program \"echo \"Hello, World!\" > output.txt; rm output.txt\":")
359+
.contains("No such file or directory");
360360
}
361361
}
362362

0 commit comments

Comments
 (0)