diff --git a/src/test/java/io/jenkins/plugins/cdevents/BuildCDEvent.java b/src/test/java/io/jenkins/plugins/cdevents/BuildCDEvent.java index 2beeccb..085ea17 100644 --- a/src/test/java/io/jenkins/plugins/cdevents/BuildCDEvent.java +++ b/src/test/java/io/jenkins/plugins/cdevents/BuildCDEvent.java @@ -54,7 +54,6 @@ void buildPipelineRunStartedModel() throws IOException, InterruptedException { try (MockedStatic modelBuilder = getMockedModelBuilder()) { modelBuilder.when(() -> ModelBuilder.buildJobModel(job, run, taskListener)).thenReturn(new JobModel()); when(run.getParent().getFullDisplayName()).thenReturn("TestJob1"); - when(run.getParent().getUrl()).thenReturn("http://localhost/job/1"); when(run.getUrl()).thenReturn("http://localhost/job/1/stage/1"); when(run.getId()).thenReturn("1");