mirror of
https://github.com/fluencelabs/js-libp2p-interfaces
synced 2025-06-13 03:01:32 +00:00
fix: add async support to setup (#11)
This commit is contained in:
@ -6,8 +6,12 @@ const MockDiscovery = require('./mock-discovery')
|
||||
|
||||
describe('compliance tests', () => {
|
||||
tests({
|
||||
setup () {
|
||||
async setup () {
|
||||
await new Promise(resolve => setTimeout(resolve, 10))
|
||||
return new MockDiscovery()
|
||||
},
|
||||
async teardown () {
|
||||
await new Promise(resolve => setTimeout(resolve, 10))
|
||||
}
|
||||
})
|
||||
})
|
||||
|
Reference in New Issue
Block a user