Test default discovery as part of the CI

This commit is contained in:
Franck Royer 2021-09-21 14:22:35 +10:00
parent d18c6eca83
commit 48bed9d2a2
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 19 additions and 0 deletions

View File

@ -31,6 +31,25 @@ describe('Waku Dial', function () {
});
describe('Bootstrap', function () {
it('Passing a boolean', async function () {
// This test depends on fleets.status.im being online.
// This dependence must be removed once DNS discovery is implemented
this.timeout(20_000);
waku = await Waku.create({
staticNoiseKey: NOISE_KEY_1,
bootstrap: true,
});
const connectedPeerID: PeerId = await new Promise((resolve) => {
waku.libp2p.connectionManager.on('peer:connect', (connection) => {
resolve(connection.remotePeer);
});
});
expect(connectedPeerID).to.not.be.undefined;
});
it('Passing an array', async function () {
this.timeout(10_000);