Skip to content

Commit

Permalink
fix: return operation array from getOperation method (#816)
Browse files Browse the repository at this point in the history
* return operation array from getOperation

* unit test
  • Loading branch information
xiaozhenliu-gg5 authored Apr 24, 2020
1 parent f3a7e4b commit 483ae8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/operationsClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export class OperationsClient {
protos.google.longrunning.GetOperationRequest,
{} | null | undefined
>
): Promise<protos.google.longrunning.Operation> {
): Promise<[protos.google.longrunning.Operation]> {
let options: gax.CallOptions;
if (optionsOrCallback instanceof Function && callback === undefined) {
callback = (optionsOrCallback as unknown) as Callback<
Expand Down
2 changes: 1 addition & 1 deletion test/unit/operationClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ describe('operation client', () => {
);
});

it('invokes getOperation without error using callback', async () => {
it('invokes getOperationInternal without error using callback', async () => {
const grpcClient = new GrpcClient();
const clientOptions = {
credentials: {client_email: 'bogus', private_key: 'bogus'},
Expand Down

0 comments on commit 483ae8c

Please sign in to comment.