Skip to content

Commit cbb0cef

Browse files
committed
ci: travis is not installing dependencies, adding an install script to force it
1 parent c48d3db commit cbb0cef

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

scripts/typedoc/generate_typedoc.sh

100644100755
File mode changed.

test/unit/speech-helpers.test.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,16 @@ const service = {
99
url: 'http://ibm.com:80',
1010
version: 'v1',
1111
silent: true, // hide deprecation warnings for recognizeLive and friends
12-
httpsAgent: 'fake agent',
12+
httpsAgent: 'fake https agent',
13+
httpAgent: 'fake http agent',
1314
};
1415

1516
const rc_service = {
1617
iam_apikey: 'abc123',
1718
url: 'http://ibm.com:80',
1819
version: 'v1',
1920
silent: true, // hide deprecation warnings for recognizeLive and friends
21+
httpAgent: 'fake http agent',
2022
};
2123

2224
const speech_to_text = new SpeechToTextV1(service);
@@ -45,6 +47,7 @@ describe('speech_to_text', () => {
4547
expect(stream.options.url).toBe(service.url);
4648
expect(stream.options.headers.authorization).toBeUndefined();
4749
expect(stream.options.token_manager).toBeDefined();
50+
expect(stream.options.agent).toBe(rc_service.httpAgent);
4851
});
4952

5053
it('should override stored header with new token on refresh', done => {

0 commit comments

Comments
 (0)