mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-23 06:35:17 +01:00
Remove disconnectOldVersions2 as it tests nothing, probably a bad merge conflict.
This commit is contained in:
parent
e4e2e60627
commit
86b42b7fe5
1 changed files with 0 additions and 21 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue