This repository has been archived by the owner on Oct 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add tests for peer-discovery interface
- Loading branch information
1 parent
8a99f1b
commit b782934
Showing
3 changed files
with
29 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
'use strict' | ||
|
||
/* eslint-env mocha */ | ||
|
||
const tests = require('libp2p-interfaces/src/peer-discovery/tests') | ||
|
||
const Bootstrap = require('../src') | ||
const peerList = require('./default-peers') | ||
|
||
describe('compliance tests', () => { | ||
tests({ | ||
setup () { | ||
const bootstrap = new Bootstrap({ | ||
list: peerList, | ||
interval: 2000 | ||
}) | ||
|
||
return bootstrap | ||
} | ||
}) | ||
}) |