Skip to content

Commit c2e6b64

Browse files
authored
chore: fix tests (#184)
The latest crypto release removed the ability to generate random data larger than 64kb so use iso-random-stream directly instead.
1 parent d6e8745 commit c2e6b64

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
"@libp2p/peer-id-factory": "^1.0.8",
9292
"aegir": "^37.3.0",
9393
"benchmark": "^2.1.4",
94+
"iso-random-stream": "^2.0.2",
9495
"mkdirp": "^1.0.4",
9596
"protons": "^4.0.0",
9697
"sinon": "^14.0.0"

test/noise.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { randomBytes } from '@libp2p/crypto'
1+
import { randomBytes } from 'iso-random-stream'
22
import type { PeerId } from '@libp2p/interface-peer-id'
33
import { Buffer } from 'buffer'
44
import { assert, expect } from 'aegir/chai'

0 commit comments

Comments
 (0)