3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-01-30 23:02:15 +00:00

Fix a typo bug in IrcDiscoveryTest. Patch from Nathan Baulch. Resolves issue 33.

This commit is contained in:
Mike Hearn 2011-06-30 19:00:52 +00:00
parent cc70107e27
commit 46ccc7389d

View File

@ -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);
}
}