Skip to content

Commit fbc5b93

Browse files
authored
Small test fix (#165)
* include transports option * remove async/await
1 parent 5cfbfc0 commit fbc5b93

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

test/services.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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
});

test/xmlrpcTest.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)