Skip to content

Commit b5033a7

Browse files
committed
Don't check result code in testVersion()
Due to the test setup with the SecurityManager that captures System.exit(), the actual result code can not reliably be passed to the test when System.exit() is called outside a command
1 parent 3618fe0 commit b5033a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/samm-cli/src/test/java/org/eclipse/esmf/SammCliTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ void testNoArgs() {
110110

111111
@Test
112112
void testVersion() {
113-
final ExecutionResult result = sammCli.runAndExpectSuccess( "--disable-color", "--version" );
113+
final ExecutionResult result = sammCli.apply( "--disable-color", "--version" );
114114
assertThat( result.stdout() ).contains( "Version:" );
115115
assertThat( result.stderr() ).isEmpty();
116116
}

0 commit comments

Comments
 (0)