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