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
  • Loading branch information
Apache9 committed Mar 17, 2022
1 parent caea843 commit bd65ad4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,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 bd65ad4

Please sign in to comment.