File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,9 +37,11 @@ describe('Services Tests', () => {
3737 } ) ;
3838
3939 describe ( 'get type' , ( ) => {
40- it ( 'can get the type' , async function ( ) {
41- const p = await rn . getServiceHeader ( '/rosout/get_loggers' ) ;
42- expect ( p . type ) . to . equal ( 'roscpp/GetLoggers' ) ;
40+ it ( 'can get the type' , function ( done ) {
41+ rn . getServiceHeader ( '/rosout/get_loggers' ) . then ( ( p ) => {
42+ expect ( p . type ) . to . equal ( 'roscpp/GetLoggers' ) ;
43+ done ( ) ;
44+ } ) ;
4345 } ) ;
4446 } ) ;
4547} ) ;
Original file line number Diff line number Diff line change @@ -569,7 +569,8 @@ describe('Protocol Test', () => {
569569 const subImpl = new SubscriberImpl ( {
570570 topic,
571571 type : 'std_msgs/String' ,
572- typeClass : rosnodejs . require ( 'std_msgs' ) . msg . String
572+ typeClass : rosnodejs . require ( 'std_msgs' ) . msg . String ,
573+ transports : [ 'TCPROS' ]
573574 } ,
574575 nh . _node ) ;
575576
You can’t perform that action at this time.
0 commit comments