Try to fix tests on travis.

Unfortunately they work fine locally, so there may be several of those attempts.
This commit is contained in:
Christian Basler 2016-09-12 11:15:07 +02:00
parent 71124d7b01
commit e6d40cde76

View File

@ -86,7 +86,7 @@ public class NetworkHandlerTest {
}
@Before
public void setUp() {
public void setUp() throws InterruptedException {
peerInventory = new TestInventory();
peer = new BitmessageContext.Builder()
.addressRepo(mock(AddressRepository.class))
@ -120,6 +120,7 @@ public class NetworkHandlerTest {
})
.build();
peer.startup();
Thread.sleep(100);
nodeInventory = new TestInventory();
node = new BitmessageContext.Builder()