Skip to content

Commit d347d8c

Browse files
committed
test: fix skipping the curve tests
1 parent e90e295 commit d347d8c

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

test/unit/socket-curve-send-receive-test.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ import {testProtos, uniqAddress} from "./helpers"
55

66
for (const proto of testProtos("tcp", "ipc", "inproc")) {
77
describe(`socket with ${proto} curve send/receive`, function () {
8+
if (!zmq.capability.curve) {
9+
return
10+
}
11+
812
let sockA: zmq.Pair
913
let sockB: zmq.Pair
1014

1115
beforeEach(function () {
12-
if (!zmq.capability.curve) {
13-
this.skip()
14-
}
15-
1616
const serverKeypair = zmq.curveKeyPair()
1717
const clientKeypair = zmq.curveKeyPair()
1818

@@ -39,10 +39,6 @@ for (const proto of testProtos("tcp", "ipc", "inproc")) {
3939

4040
describe("when connected", function () {
4141
beforeEach(async function () {
42-
if (!zmq.capability.curve) {
43-
this.skip()
44-
}
45-
4642
const address = uniqAddress(proto)
4743
await sockB.bind(address)
4844
await sockA.connect(address)

0 commit comments

Comments
 (0)