Skip to content

Commit 88ca9fb

Browse files
committed
fix integration tests
1 parent 628078f commit 88ca9fb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/app/credential-internal.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ export class ServiceAccountCredential implements Credential {
147147

148148
public async getAccessToken(): Promise<GoogleOAuthAccessToken> {
149149
const googleAuth = this.getGoogleAuth();
150-
const client = await googleAuth.getClient();
150+
const client = googleAuth.fromJSON(this.serviceAccountPathOrObject as object);
151+
//const client = await googleAuth.getClient();
151152
await client.getAccessToken();
152153
const credentials = client.credentials;
153154
return populateCredential(credentials);

test/integration/data-connect.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ describe('getDataConnect()', () => {
9999
user_upsert(data: { uid: $id, address: "32 St.", name: "Fred" }) }`;
100100

101101
describe('executeGraphql()', () => {
102-
it('executeGraphql() successfully executes a GraphQL mutation', async () => {
102+
it.only('executeGraphql() successfully executes a GraphQL mutation', async () => {
103103
const resp = await getDataConnect(connectorConfig).executeGraphql<UserUpdateResponse, unknown>(
104104
upsertUser, { variables: { id: userId } }
105105
);

0 commit comments

Comments
 (0)