Skip to content

Commit

Permalink
HBASE-26833 Addendum fix NPE in TestReplicationSource.testTerminateCl…
Browse files Browse the repository at this point in the history
…earsBuffer

(cherry picked from commit bd65ad4)
  • Loading branch information
Apache9 committed Mar 17, 2022
1 parent c413bb1 commit 2e8f0a0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@ public void testTerminateClearsBuffer() throws Exception {
ReplicationPeer mockPeer = mock(ReplicationPeer.class);
Mockito.when(mockPeer.getPeerBandwidth()).thenReturn(0L);
Configuration testConf = HBaseConfiguration.create();
source.init(testConf, null, mockManager, null, mockPeer, null,
"testPeer", null, p -> OptionalLong.empty(), mock(MetricsSource.class));
source.init(testConf, null, mockManager, null, mockPeer, Mockito.mock(Server.class), "testPeer",
null, p -> OptionalLong.empty(), mock(MetricsSource.class));
ReplicationSourceWALReader reader = new ReplicationSourceWALReader(null,
conf, null, 0, null, source, null);
ReplicationSourceShipper shipper =
Expand Down

0 comments on commit 2e8f0a0

Please sign in to comment.