Skip to content

Commit e54ab47

Browse files
committed
fix build error
1 parent 53089e6 commit e54ab47

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/main/java/com/tvd12/ezyfoxserver/client/socket/EzyTcpSslSocketClient.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,7 @@ protected void startAdapters() {
8484

8585
@Override
8686
public void setEventLoopGroup(EzyEventLoopGroup eventLoopGroup) {
87-
throw new UnsupportedOperationException(
88-
"currently we haven't supported event loop group " +
89-
"with tcp ssl socket yet"
90-
);
87+
// "currently we haven't supported event loop group
88+
// with tcp ssl socket yet"
9189
}
9290
}

src/test/java/com/tvd12/ezyfoxserver/client/testing/socket/EzyTcpSslSocketWriterTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public void writePacketToSocketTest() throws Exception {
2121
EzyPacket packet = mock(EzyPacket.class);
2222
byte[] data = RandomUtil.randomShortByteArray();
2323
when(packet.getData()).thenReturn(data);
24-
when(packetQueue.peek()).thenReturn(packet);
24+
when(packetQueue.peekNow()).thenReturn(packet);
2525

2626
EzyTcpSslSocketWriter instance = new EzyTcpSslSocketWriter();
2727
instance.setPacketQueue(packetQueue);
@@ -49,7 +49,7 @@ public void writePacketToSocketThrowExceptionTest() throws Exception {
4949
EzyPacket packet = mock(EzyPacket.class);
5050
byte[] data = RandomUtil.randomShortByteArray();
5151
when(packet.getData()).thenReturn(data);
52-
when(packetQueue.peek()).thenReturn(packet);
52+
when(packetQueue.peekNow()).thenReturn(packet);
5353

5454
EzyTcpSslSocketWriter instance = new EzyTcpSslSocketWriter();
5555
instance.setPacketQueue(packetQueue);

0 commit comments

Comments
 (0)