Skip to content

Commit

Permalink
Issue #9387 , error in push message unit test was fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii0lomakin committed Sep 7, 2020
1 parent 0b21fa2 commit 6746bfe
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import com.orientechnologies.orient.enterprise.channel.binary.OChannelDataInput;
import com.orientechnologies.orient.enterprise.channel.binary.OChannelDataOutput;
import com.orientechnologies.orient.server.OServer;
import com.orientechnologies.orient.server.memorymanager.NoOpMemoryManager;
import com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary;
import java.io.IOException;
import java.io.PipedInputStream;
Expand Down Expand Up @@ -108,6 +109,7 @@ public void before() throws IOException {
this.channelBinaryClient = new MockPipeChannel(inputClient, outputClient);
this.channelBinaryServer = new MockPipeChannel(inputServer, outputServer);
Mockito.when(server.getContextConfiguration()).thenReturn(new OContextConfiguration());
Mockito.when(server.getMemoryManager()).thenReturn(new NoOpMemoryManager());
Mockito.when(remote.getNetwork(Mockito.anyString())).thenReturn(channelBinaryClient);
Mockito.when(remote.createPush((byte) 100)).thenReturn(new MockPushRequest());
Mockito.when(remote.createPush((byte) 101)).thenReturn(new MockPushRequestNoResponse());
Expand Down

0 comments on commit 6746bfe

Please sign in to comment.