Skip to content

Commit 9c69649

Browse files
committed
Address comments
1 parent 242c737 commit 9c69649

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

test/test-publisher.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ describe('rclnodejs publisher test suite', function () {
5454

5555
it('Test loggerName', function () {
5656
const node = rclnodejs.createNode('publisher_node');
57+
const String = 'std_msgs/msg/String';
5758
const publisher = node.createPublisher(String, 'topic');
5859
assert.strictEqual(typeof publisher.loggerName, 'string');
5960
});

test/test-service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ describe('Test service class', function () {
105105
result.sum = request.a + request.b;
106106
}
107107
);
108-
const client = clientNode.createClient(AddTwoInts, 'single_ps_channel2');
108+
const client = node.createClient(AddTwoInts, 'single_ps_channel2');
109109

110110
assert.strictEqual(typeof service.loggerName, 'string');
111111
assert.strictEqual(typeof client.loggerName, 'string');

test/test-subscription.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ describe('rclnodejs subscription test suite', function () {
3838

3939
it('Test loggerName', function () {
4040
const node = rclnodejs.createNode('publisher_node');
41+
const String = 'std_msgs/msg/String';
4142
const subscription = node.createSubscription(String, 'topic', (msg) => {});
4243
assert.strictEqual(typeof subscription.loggerName, 'string');
4344
});

0 commit comments

Comments
 (0)