File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ import {
4242} from '../../../src/auth/auth-config';
4343import {deepCopy} from '../../../src/utils/deep-copy';
4444import { TenantManager } from '../../../src/auth/tenant-manager';
45+ import { HttpClient } from '../../../src/utils/api-request';
4546
4647chai.should();
4748chai.use(sinonChai);
@@ -357,7 +358,8 @@ AUTH_CONFIGS.forEach((testConfig) => {
357358
358359 it('should be eventually rejected if a cert credential is not specified', () => {
359360 const mockCredentialAuth = testConfig.init(mocks.mockCredentialApp());
360-
361+ // Force the service account ID discovery to fail.
362+ getTokenStub = sinon.stub(HttpClient.prototype, 'send').rejects(utils.errorFrom({}));
361363 return mockCredentialAuth.createCustomToken(mocks.uid, mocks.developerClaims)
362364 .should.eventually.be.rejected.and.have.property('code', 'auth/invalid-credential');
363365 });
You can’t perform that action at this time.
0 commit comments