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:
parent
cc70107e27
commit
46ccc7389d
@ -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…
Reference in New Issue
Block a user