mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-03-03 17:47:02 +01:00
Fix a typo bug in IrcDiscoveryTest. Patch from Nathan Baulch. Resolves issue 33.
This commit is contained in:
parent
cc70107e27
commit
46ccc7389d
1 changed files with 3 additions and 2 deletions
|
@ -42,8 +42,9 @@ public class IrcDiscoveryTest {
|
|||
InetSocketAddress[] decoded = addresses.toArray(new InetSocketAddress[]{});
|
||||
|
||||
for (int i = 0; i < decoded.length; i++) {
|
||||
String formattedIP = decoded[0].getAddress().getHostAddress() + ":" + ((Integer)decoded[i].getPort()).toString();
|
||||
assertEquals("IPs decoded improperly", ips[0], formattedIP);
|
||||
String formattedIP = decoded[i].getAddress().getHostAddress() + ":" + ((Integer)decoded[i].getPort())
|
||||
.toString();
|
||||
assertEquals("IPs decoded improperly", ips[i], formattedIP);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue