Skip to content

Commit 2617f4c

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

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ before_install:
1414
&& cd test/resources/ && tar xvf secrets.tar
1515
&& cd ../.. || true'
1616
- npm install -g typescript
17+
install:
18+
- npm ci
1719
script:
1820
- tsc
1921
- npm run test-unit-travis || travis_terminate 1

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)