File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,25 @@ describe('Waku Dial', function () {
3131 } ) ;
3232
3333 describe ( 'Bootstrap' , function ( ) {
34+ it ( 'Passing a boolean' , async function ( ) {
35+ // This test depends on fleets.status.im being online.
36+ // This dependence must be removed once DNS discovery is implemented
37+ this . timeout ( 20_000 ) ;
38+
39+ waku = await Waku . create ( {
40+ staticNoiseKey : NOISE_KEY_1 ,
41+ bootstrap : true ,
42+ } ) ;
43+
44+ const connectedPeerID : PeerId = await new Promise ( ( resolve ) => {
45+ waku . libp2p . connectionManager . on ( 'peer:connect' , ( connection ) => {
46+ resolve ( connection . remotePeer ) ;
47+ } ) ;
48+ } ) ;
49+
50+ expect ( connectedPeerID ) . to . not . be . undefined ;
51+ } ) ;
52+
3453 it ( 'Passing an array' , async function ( ) {
3554 this . timeout ( 10_000 ) ;
3655
You can’t perform that action at this time.
0 commit comments