Skip to content

Commit 3d8c603

Browse files
committed
Fixed failing test due to bad setup.
1 parent dfb7916 commit 3d8c603

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/java/cd/go/contrib/elasticagent/executors/AgentStatusReportExecutorTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222

2323
import java.util.ArrayList;
2424
import java.util.Arrays;
25+
import java.util.Collections;
2526

27+
import static cd.go.contrib.elasticagent.Constants.JOB_IDENTIFIER_LABEL_KEY;
2628
import static org.hamcrest.Matchers.is;
2729
import static org.junit.Assert.assertThat;
2830
import static org.mockito.ArgumentMatchers.any;
@@ -167,6 +169,7 @@ private Pod creatdDefaultPod() {
167169
PodStatus status = new PodStatus();
168170
status.setContainerStatuses(Arrays.asList(new ContainerStatus()));
169171
pod.setStatus(status);
172+
pod.getMetadata().setAnnotations(Collections.singletonMap(JOB_IDENTIFIER_LABEL_KEY, "{}"));
170173
return pod;
171174
}
172175

0 commit comments

Comments
 (0)