Change to unit test so that it doesn't require the setup of multiple loopback devices.
Instead of using addresses in the format of `"127.0.0." + i` it now instead uses a first address of 127.0.0.1 with variable ports in the form of `50000 + i`. This way straight out of the repo you can run the tests, and to some degree achieves the same level of functional testing. Also added a small additional bit of debug logging in `GossipService` as well as some `INFO` logging in the test - as I figure it's a test that should be suitable.
This commit is contained in:
@ -47,6 +47,9 @@ public class GossipService {
|
||||
}
|
||||
|
||||
public void start() {
|
||||
String address = get_gossipManager().getMyself().getHost() + ":" + get_gossipManager().getMyself().getPort();
|
||||
LOGGER.debug( "Starting: " + _gossipManager.getName() + " - " + address );
|
||||
|
||||
_gossipManager.start();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user