File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -285,9 +285,16 @@ test('Limiting remote functions to 0', async t => {
285285 const server = createNode ( { max_remote_functions : 0 } )
286286 const client = createNode ( { max_remote_functions : 1 } )
287287 const callClient = server . open ( client . message , fn => fn )
288- const callServer = client . open ( server . message , fn => fn )
289- await callServer ( ( ) => { } )
290288 t . is ( callClient , null )
289+ const callServer = client . open ( server . message )
290+ await callServer ( ( ) => { } )
291291 t . is ( server . remote_functions . size , 0 )
292292 t . is ( client . remote_functions . size , 2 )
293+ await callServer ( ( ) => { } )
294+ t . is ( client . remote_functions . size , 2 )
295+
296+ // faking calls
297+ t . is ( server . message ( [ 111 , 0 ] ) , true )
298+ t . is ( server . message ( [ 222 , 1 ] ) , false )
299+ t . is ( client . message ( [ 222 , 0 ] ) , false )
293300} )
You can’t perform that action at this time.
0 commit comments