mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-07 23:03:04 +00:00
Bit more debugging code in TestWithNetworkConnections
This commit is contained in:
parent
c21f182d78
commit
45ce6fe9df
@ -119,7 +119,10 @@ public class TestWithNetworkConnections {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected Object outbound(FakeChannel p1) {
|
protected Object outbound(FakeChannel p1) {
|
||||||
MessageEvent nextEvent = (MessageEvent)p1.nextEvent();
|
ChannelEvent channelEvent = p1.nextEvent();
|
||||||
|
if (channelEvent != null && !(channelEvent instanceof MessageEvent))
|
||||||
|
throw new IllegalStateException("Expected message but got: " + channelEvent);
|
||||||
|
MessageEvent nextEvent = (MessageEvent) channelEvent;
|
||||||
if (nextEvent == null)
|
if (nextEvent == null)
|
||||||
return null;
|
return null;
|
||||||
return nextEvent.getMessage();
|
return nextEvent.getMessage();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user