mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-07 06:44:16 +00:00
Fix a typo bug in IrcDiscoveryTest. Patch from Nathan Baulch. Resolves issue 33.
This commit is contained in:
parent
cc70107e27
commit
46ccc7389d
@ -42,8 +42,9 @@ public class IrcDiscoveryTest {
|
|||||||
InetSocketAddress[] decoded = addresses.toArray(new InetSocketAddress[]{});
|
InetSocketAddress[] decoded = addresses.toArray(new InetSocketAddress[]{});
|
||||||
|
|
||||||
for (int i = 0; i < decoded.length; i++) {
|
for (int i = 0; i < decoded.length; i++) {
|
||||||
String formattedIP = decoded[0].getAddress().getHostAddress() + ":" + ((Integer)decoded[i].getPort()).toString();
|
String formattedIP = decoded[i].getAddress().getHostAddress() + ":" + ((Integer)decoded[i].getPort())
|
||||||
assertEquals("IPs decoded improperly", ips[0], formattedIP);
|
.toString();
|
||||||
|
assertEquals("IPs decoded improperly", ips[i], formattedIP);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user