Skip to content

Commit b13b1e4

Browse files
test: fix a node 10 test failure (#199)
1 parent 4c6bb68 commit b13b1e4

1 file changed

Lines changed: 12 additions & 14 deletions

File tree

handwritten/error-reporting/test/unit/google-apis/auth-client.ts

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -65,20 +65,18 @@ function verifyReportedMessage(
6565
});
6666
}
6767
describe('RequestHandler', () => {
68-
it('should not request OAuth2 token if key is provided',
69-
(done: () => void) => {
70-
const config = {
71-
ignoreEnvironmentCheck: true,
72-
key: 'key',
73-
};
74-
const message = 'Made OAuth2 Token Request';
75-
verifyReportedMessage(
76-
config, new Error(message), {
77-
info: 'API key provided; skipping OAuth2 token request.',
78-
},
79-
done);
80-
})
81-
.timeout(4000);
68+
it('should not request OAuth2 token if key is provided', done => {
69+
const config = {
70+
ignoreEnvironmentCheck: true,
71+
key: 'key',
72+
};
73+
const message = 'Made OAuth2 Token Request';
74+
verifyReportedMessage(
75+
config, new Error(message), {
76+
info: 'API key provided; skipping OAuth2 token request.',
77+
},
78+
done);
79+
}).timeout(8000);
8280

8381
it('should issue a warning if it cannot communicate with the API',
8482
(done: () => void) => {

0 commit comments

Comments
 (0)