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:
Ian
2016-01-30 14:43:39 +11:00
parent c8c3332eb0
commit 0393d99c09
2 changed files with 11 additions and 2 deletions

View File

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