diff --git a/src/test/java/itest/GraphQLTest.java b/src/test/java/itest/GraphQLTest.java index f22dcf724..0b8c4ac18 100644 --- a/src/test/java/itest/GraphQLTest.java +++ b/src/test/java/itest/GraphQLTest.java @@ -250,10 +250,8 @@ void testStartRecordingMutationOnSpecificTarget() throws Exception { notification.getJsonObject("message").getJsonObject("recording"); MatcherAssert.assertThat(notificationRecording.getString("name"), Matchers.equalTo("test")); MatcherAssert.assertThat( - notification.getJsonObject("message").getString("target"), - Matchers.equalTo( - String.format( - "service:jmx:rmi:///jndi/rmi://%s:%d/jmxrmi", "localhost", 0))); + notification.getJsonObject("message").getString("jvmId"), + Matchers.not(Matchers.blankOrNullString())); JsonArray notificationLabels = notificationRecording.getJsonObject("metadata").getJsonArray("labels"); Map expectedLabels =