File tree Expand file tree Collapse file tree 4 files changed +11
-8
lines changed Expand file tree Collapse file tree 4 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ class Socket extends EventEmitter {
301
301
return this
302
302
}
303
303
304
- send ( message : zmq . MessageLike [ ] , flags = 0 , cb ?: Callback ) {
304
+ send ( message : zmq . MessageLike [ ] | zmq . MessageLike , flags = 0 , cb ?: Callback ) {
305
305
flags = flags | 0
306
306
this . _msg = this . _msg . concat ( message )
307
307
if ( ( flags & sendOptions . ZMQ_SNDMORE ) === 0 ) {
Original file line number Diff line number Diff line change 3
3
"include" : [" **/*.ts" ],
4
4
"compilerOptions" : {
5
5
"skipLibCheck" : true
6
- }
6
+ },
7
+ "compileOnSave" : false
7
8
}
Original file line number Diff line number Diff line change
1
+ import * as zmq from "../../../v5-compat"
2
+ import { assert } from "chai"
3
+ import { testProtos , uniqAddress } from "../helpers"
4
+
1
5
if ( process . env . INCLUDE_COMPAT_TESTS ) {
2
- const zmq = require ( "./load" )
3
- const { assert} = require ( "chai" )
4
- const { testProtos, uniqAddress} = require ( "../helpers" )
5
6
6
7
for ( const proto of testProtos ( "tcp" , "inproc" ) ) {
7
8
describe ( `compat socket with ${ proto } ` , function ( ) {
8
- it ( "should cooperate with gc" , function ( done ) {
9
+ it ( "should cooperate with gc" , async function ( done ) {
9
10
const sockA = zmq . socket ( "dealer" )
10
11
const sockB = zmq . socket ( "dealer" )
11
12
@@ -28,7 +29,7 @@ if (process.env.INCLUDE_COMPAT_TESTS) {
28
29
29
30
let bound = false
30
31
31
- const address = uniqAddress ( proto )
32
+ const address = await uniqAddress ( proto )
32
33
sockA . bind ( address , err => {
33
34
if ( err ) {
34
35
clearInterval ( interval )
Original file line number Diff line number Diff line change 24
24
// only used in tests
25
25
" ES2021.WeakRef"
26
26
]
27
- }
27
+ },
28
+ "compileOnSave" : true
28
29
}
You can’t perform that action at this time.
0 commit comments