Skip to content

Commit 631b466

Browse files
committed
Create sandbox per test
1 parent 41d12bf commit 631b466

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/accept-from.spec.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ const {
88

99
describe('Gossipsub acceptFrom', () => {
1010
let gossipsub
11-
const sandbox = sinon.createSandbox()
11+
const sandbox
1212
let scoreStub
1313

1414
beforeEach(async () => {
15+
sandbox = sinon.createSandbox()
1516
sandbox.useFakeTimers()
1617
gossipsub = new Gossipsub(await createPeer({ started: false }), { emitSelf: true })
1718
scoreStub = sandbox.createStubInstance(PeerScore)

0 commit comments

Comments
 (0)