Skip to content

Commit

Permalink
timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe committed Oct 31, 2023
1 parent 7d9ede1 commit 0b63aaf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/dids/tests/dht.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {DidDht} from '../src/dht.js';
import {DidDhtKeySet, DidDhtMethod} from '../src/did-dht.js';
import {DidKeySetVerificationMethodKey, DidService} from '../src/index.js';


describe('DHT', function () {
this.timeout('15000'); // 15 seconds

Expand All @@ -21,6 +22,10 @@ describe('DHT', function () {

expect(published).to.be.true;

// wait for propagation
const wait = ms => new Promise(resolve => setTimeout(resolve, ms));
await wait(1000*10);

const gotDid = await DidDht.getDidDocument(document.id);
expect(gotDid.id).to.deep.equal(document.id);
expect(gotDid.capabilityDelegation).to.deep.equal(document.capabilityDelegation);
Expand Down

0 comments on commit 0b63aaf

Please sign in to comment.