Skip to content

Commit

Permalink
fix integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lahirumaramba committed Nov 3, 2024
1 parent 628078f commit 88ca9fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/app/credential-internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ export class ServiceAccountCredential implements Credential {

public async getAccessToken(): Promise<GoogleOAuthAccessToken> {
const googleAuth = this.getGoogleAuth();
const client = await googleAuth.getClient();
const client = googleAuth.fromJSON(this.serviceAccountPathOrObject as object);
//const client = await googleAuth.getClient();
await client.getAccessToken();
const credentials = client.credentials;
return populateCredential(credentials);
Expand Down
2 changes: 1 addition & 1 deletion test/integration/data-connect.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ describe('getDataConnect()', () => {
user_upsert(data: { uid: $id, address: "32 St.", name: "Fred" }) }`;

describe('executeGraphql()', () => {
it('executeGraphql() successfully executes a GraphQL mutation', async () => {
it.only('executeGraphql() successfully executes a GraphQL mutation', async () => {
const resp = await getDataConnect(connectorConfig).executeGraphql<UserUpdateResponse, unknown>(
upsertUser, { variables: { id: userId } }
);
Expand Down

0 comments on commit 88ca9fb

Please sign in to comment.