Skip to content

Commit c464b22

Browse files
committed
Fix issues
1 parent 3afb4c3 commit c464b22

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/test/java/org/sonarsource/sonarqube/mcp/transport/StdioServerTransportProviderTest.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -123,18 +123,5 @@ void closeGracefully_should_complete_immediately_if_session_closes_in_5_seconds(
123123
verify(mockSession, never()).close();
124124
}
125125

126-
@Test
127-
void should_not_exit_jvm_when_running_in_test_mode() throws Exception {
128-
// This test verifies that System.exit(0) is NOT called when running tests.
129-
// If the test detection logic fails, this test would never complete because
130-
// the JVM would exit. The fact that this test completes proves the detection works.
131-
132-
var provider = new StdioServerTransportProvider(new ObjectMapper());
133-
134-
// Verify the provider can be created without issues
135-
// The shouldExitOnStdinEof() method should return false during tests
136-
assertThatCode(() -> provider.toString()).doesNotThrowAnyException();
137-
}
138-
139126
}
140127

0 commit comments

Comments
 (0)