Skip to content

Commit 85b6027

Browse files
committed
Address comments
1 parent 26e59e3 commit 85b6027

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test-type-description-service.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ describe('type description service test suite', function () {
6262
const GetTypeDescription =
6363
'type_description_interfaces/srv/GetTypeDescription';
6464
const client = node.createClient(GetTypeDescription, serviceName);
65-
const result = await client.waitForService(30 * 1000);
65+
const result = await client.waitForService(5000);
6666
if (!result) {
6767
throw new Error('Service not available');
6868
}
6969

7070
const promise = new Promise((resolve) => {
7171
const timer = setInterval(() => {
72-
clearInterval(timer);
7372
client.sendRequest(request, (response) => {
73+
clearInterval(timer);
7474
assert.strictEqual(response.successful, true);
7575
assert.strictEqual(
7676
response.type_description.type_description.type_name,
@@ -79,7 +79,7 @@ describe('type description service test suite', function () {
7979
assert.notStrictEqual(response.type_sources.length, 0);
8080
resolve();
8181
});
82-
}, 5000);
82+
}, 2000);
8383
});
8484
await promise;
8585
});

0 commit comments

Comments
 (0)