diff --git a/packages/jellyfish-wallet-mnemonic/__tests__/mnemonic/bip32.test.ts b/packages/jellyfish-wallet-mnemonic/__tests__/mnemonic/bip32.test.ts index 9cdb7c9ec4..38bd32a9eb 100644 --- a/packages/jellyfish-wallet-mnemonic/__tests__/mnemonic/bip32.test.ts +++ b/packages/jellyfish-wallet-mnemonic/__tests__/mnemonic/bip32.test.ts @@ -74,7 +74,8 @@ describe('24 words: random', () => { const hash = Buffer.from('e9071e75e25b8a1e298a72f0d2e9f4f95a0f5cdf86a533cda597eb402ed13b3a', 'hex') const signature = await node.sign(hash) - expect(signature.length).toBe(70) + expect(signature.length).toBeLessThanOrEqual(70) + expect(signature.length).toBeGreaterThanOrEqual(67) // 0.00001 probability of being this length const valid = await node.verify(hash, signature) expect(valid).toBe(true)