Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
tvd12 committed Feb 24, 2024
1 parent 53089e6 commit e54ab47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ protected void startAdapters() {

@Override
public void setEventLoopGroup(EzyEventLoopGroup eventLoopGroup) {
throw new UnsupportedOperationException(
"currently we haven't supported event loop group " +
"with tcp ssl socket yet"
);
// "currently we haven't supported event loop group
// with tcp ssl socket yet"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public void writePacketToSocketTest() throws Exception {
EzyPacket packet = mock(EzyPacket.class);
byte[] data = RandomUtil.randomShortByteArray();
when(packet.getData()).thenReturn(data);
when(packetQueue.peek()).thenReturn(packet);
when(packetQueue.peekNow()).thenReturn(packet);

EzyTcpSslSocketWriter instance = new EzyTcpSslSocketWriter();
instance.setPacketQueue(packetQueue);
Expand Down Expand Up @@ -49,7 +49,7 @@ public void writePacketToSocketThrowExceptionTest() throws Exception {
EzyPacket packet = mock(EzyPacket.class);
byte[] data = RandomUtil.randomShortByteArray();
when(packet.getData()).thenReturn(data);
when(packetQueue.peek()).thenReturn(packet);
when(packetQueue.peekNow()).thenReturn(packet);

EzyTcpSslSocketWriter instance = new EzyTcpSslSocketWriter();
instance.setPacketQueue(packetQueue);
Expand Down

0 comments on commit e54ab47

Please sign in to comment.