From 88fadbfbb73a4dcc5498c98f751a9f2392d01122 Mon Sep 17 00:00:00 2001 From: Jesse Glick Date: Tue, 12 Nov 2024 15:01:25 -0500 Subject: [PATCH] Clearer assertion Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com> --- test/src/test/java/hudson/cli/CLIActionTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/src/test/java/hudson/cli/CLIActionTest.java b/test/src/test/java/hudson/cli/CLIActionTest.java index 53895fb1553c..3c407555cb2b 100644 --- a/test/src/test/java/hudson/cli/CLIActionTest.java +++ b/test/src/test/java/hudson/cli/CLIActionTest.java @@ -144,7 +144,7 @@ private void assertExitCode(int code, boolean useApiToken, File jar, String... a var exitStatus = new Launcher.LocalLauncher(StreamTaskListener.fromStderr()).launch().cmds( "java", "-jar", jar.getAbsolutePath(), "-s", j.getURL().toString(), "-auth", "user:bogustoken", "who-am-i" ).stdout(baos).start().join(); - assertThat(baos.toString(), allOf(containsString("status code 401"), containsString("erver: Jetty"))); + assertThat(baos.toString(), allOf(containsString("status code 401"), containsStringIgnoringCase("server: Jetty"))); assertThat(exitStatus, is(15)); }