Skip to content

Commit

Permalink
fix: attempt to stabilize the IdentityManagerTest
Browse files Browse the repository at this point in the history
  • Loading branch information
binarycoded committed Nov 15, 2024
1 parent 065ec54 commit 206c6a1
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
import java.lang.management.RuntimeMXBean;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.junit.jupiter.api.parallel.Execution;
import org.junit.jupiter.api.parallel.ExecutionMode;
import org.mockito.MockedStatic;
import org.mockito.Mockito;
import org.mockito.junit.jupiter.MockitoExtension;
Expand All @@ -18,6 +20,7 @@
class IdentityManagerTest {

@Test
@Execution(ExecutionMode.SAME_THREAD)
void testCreateIdentityManagerSuccessfully() {
RuntimeMXBean mockRuntimeMXBean = mock(RuntimeMXBean.class);
when(mockRuntimeMXBean.getName()).thenReturn("12345@mockedHostName");
Expand Down

0 comments on commit 206c6a1

Please sign in to comment.