mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-11-03 14:07:14 +00:00
Remove disconnectOldVersions2 as it tests nothing, probably a bad merge conflict.
This commit is contained in:
@@ -812,27 +812,6 @@ public class PeerTest extends TestWithNetworkConnections {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
public void disconnectOldVersions2() throws Exception {
|
|
||||||
// Set up the connection with an old version.
|
|
||||||
final SettableFuture<Void> connectedFuture = SettableFuture.create();
|
|
||||||
final SettableFuture<Void> disconnectedFuture = SettableFuture.create();
|
|
||||||
peer.addEventListener(new AbstractPeerEventListener() {
|
|
||||||
@Override
|
|
||||||
public void onPeerConnected(Peer peer, int peerCount) {
|
|
||||||
connectedFuture.set(null);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onPeerDisconnected(Peer peer, int peerCount) {
|
|
||||||
disconnectedFuture.set(null);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
peer.setMinProtocolVersion(500);
|
|
||||||
connectWithVersion(542);
|
|
||||||
pingAndWait(writeTarget);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void exceptionListener() throws Exception {
|
public void exceptionListener() throws Exception {
|
||||||
wallet.addEventListener(new AbstractWalletEventListener() {
|
wallet.addEventListener(new AbstractWalletEventListener() {
|
||||||
|
|||||||
Reference in New Issue
Block a user