You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozone.apache.org by bh...@apache.org on 2021/06/03 11:17:33 UTC

[ozone] branch master updated: HDDS-5295. testCRLStatusReportPublisher fails to create CRLInfo (#2302)

This is an automated email from the ASF dual-hosted git repository.

bharat pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new c2ae90b  HDDS-5295. testCRLStatusReportPublisher fails to create CRLInfo (#2302)
c2ae90b is described below

commit c2ae90bcac5b74171fa0c1566266065ce4e3de66
Author: Doroszlai, Attila <64...@users.noreply.github.com>
AuthorDate: Thu Jun 3 13:17:13 2021 +0200

    HDDS-5295. testCRLStatusReportPublisher fails to create CRLInfo (#2302)
---
 .../hadoop/ozone/container/common/report/TestReportPublisher.java | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/hadoop-hdds/container-service/src/test/java/org/apache/hadoop/ozone/container/common/report/TestReportPublisher.java b/hadoop-hdds/container-service/src/test/java/org/apache/hadoop/ozone/container/common/report/TestReportPublisher.java
index 4b25609..c97d703 100644
--- a/hadoop-hdds/container-service/src/test/java/org/apache/hadoop/ozone/container/common/report/TestReportPublisher.java
+++ b/hadoop-hdds/container-service/src/test/java/org/apache/hadoop/ozone/container/common/report/TestReportPublisher.java
@@ -183,12 +183,8 @@ public class TestReportPublisher {
     DatanodeCRLStore dnCrlStore = Mockito.mock(DatanodeCRLStore.class);
     when(dnCrlStore.getLatestCRLSequenceID()).thenReturn(3L);
     List<CRLInfo> pendingCRLs = new ArrayList<>();
-    pendingCRLs.add(new CRLInfo.Builder()
-        .setCrlSequenceID(100L)
-        .build());
-    pendingCRLs.add(new CRLInfo.Builder()
-        .setCrlSequenceID(101L)
-        .build());
+    pendingCRLs.add(Mockito.mock(CRLInfo.class));
+    pendingCRLs.add(Mockito.mock(CRLInfo.class));
     when(dnCrlStore.getPendingCRLs()).thenReturn(pendingCRLs);
     when(dummyStateMachine.getDnCRLStore()).thenReturn(dnCrlStore);
     when(dummyContext.getParent()).thenReturn(dummyStateMachine);

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ozone.apache.org
For additional commands, e-mail: commits-help@ozone.apache.org