Skip to content

Commit

Permalink
test: fix checking for ZMQ_DRAFT
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jul 17, 2021
1 parent ddbf6fc commit 57c33a8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/unit/socket-draft-dgram-test.ts
Expand Up @@ -58,7 +58,7 @@ if (zmq.capability.draft) {
})
}
} else {
if (process.env.ZMQ_DRAFT) {
if (process.env.ZMQ_DRAFT === "true") {
throw new Error("Draft API requested but not available at runtime.")
}
}
2 changes: 1 addition & 1 deletion test/unit/socket-draft-radio-dish-test.ts
Expand Up @@ -125,7 +125,7 @@ if (zmq.capability.draft) {
})
}
} else {
if (process.env.ZMQ_DRAFT) {
if (process.env.ZMQ_DRAFT === "true") {
throw new Error("Draft API requested but not available at runtime.")
}
}
2 changes: 1 addition & 1 deletion test/unit/socket-draft-scatter-gather-test.ts
Expand Up @@ -80,7 +80,7 @@ if (zmq.capability.draft) {
})
}
} else {
if (process.env.ZMQ_DRAFT) {
if (process.env.ZMQ_DRAFT === "true") {
throw new Error("Draft API requested but not available at runtime.")
}
}
2 changes: 1 addition & 1 deletion test/unit/socket-draft-server-client-test.ts
Expand Up @@ -82,7 +82,7 @@ if (zmq.capability.draft) {
})
}
} else {
if (process.env.ZMQ_DRAFT) {
if (process.env.ZMQ_DRAFT === "true") {
throw new Error("Draft API requested but not available at runtime.")
}
}
2 changes: 1 addition & 1 deletion test/unit/zmq-draft-test.ts
Expand Up @@ -23,7 +23,7 @@ if (zmq.capability.draft) {
})
})
} else {
if (process.env.ZMQ_DRAFT) {
if (process.env.ZMQ_DRAFT === "true") {
throw new Error("Draft API requested but not available at runtime.")
}
}

0 comments on commit 57c33a8

Please sign in to comment.