mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 14:39:28 -07:00
fix: Fix timeout in test
This commit is contained in:
parent
525e876ad1
commit
e84f09be5d
1 changed files with 5 additions and 5 deletions
|
@ -139,26 +139,26 @@ describe('keys.fetchHKP', () => {
|
|||
expect(await doipjs.keys.fetchHKP(pubKeyFingerprint)).to.be.instanceOf(
|
||||
openpgp.PublicKey
|
||||
)
|
||||
})
|
||||
}).timeout('12s')
|
||||
it('should return a Key object when provided a valid email address', async () => {
|
||||
expect(await doipjs.keys.fetchHKP(pubKeyEmail)).to.be.instanceOf(
|
||||
openpgp.PublicKey
|
||||
)
|
||||
})
|
||||
}).timeout('12s')
|
||||
it('should reject when provided an invalid fingerprint', async () => {
|
||||
return expect(
|
||||
doipjs.keys.fetchHKP('4637202523e7c1309ab79e99ef2dc5827b445f4b')
|
||||
).to.eventually.be.rejectedWith(
|
||||
'Key does not exist or could not be fetched'
|
||||
)
|
||||
})
|
||||
}).timeout('12s')
|
||||
it('should reject when provided an invalid email address', async () => {
|
||||
return expect(
|
||||
doipjs.keys.fetchHKP('invalid@doip.rocks')
|
||||
).to.eventually.be.rejectedWith(
|
||||
'Key does not exist or could not be fetched'
|
||||
)
|
||||
})
|
||||
}).timeout('12s')
|
||||
})
|
||||
|
||||
describe('keys.fetchPlaintext', () => {
|
||||
|
@ -170,7 +170,7 @@ describe('keys.fetchPlaintext', () => {
|
|||
expect(await doipjs.keys.fetchPlaintext(pubKeyPlaintext)).to.be.instanceOf(
|
||||
openpgp.PublicKey
|
||||
)
|
||||
})
|
||||
}).timeout('12s')
|
||||
})
|
||||
|
||||
describe('keys.process', () => {
|
||||
|
|
Loading…
Reference in a new issue