File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
test/fixtures/google-gax-packaging-test-app/test Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ import {
28
28
GoogleAuthOptions ,
29
29
BaseExternalAccountClient ,
30
30
} from 'google-auth-library' ;
31
- import * as objectHash from 'object-hash' ;
32
31
import { OperationsClientBuilder } from './operationsClient' ;
33
32
import { GrpcClientOptions , ClientStubOptions } from './grpc' ;
34
33
import { GaxCall , GRPCCall } from './apitypes' ;
@@ -40,6 +39,7 @@ import * as fallbackRest from './fallbackRest';
40
39
import { isNodeJS } from './featureDetection' ;
41
40
import { generateServiceStub } from './fallbackServiceStub' ;
42
41
import { StreamType } from '.' ;
42
+ import * as objectHash from 'object-hash' ;
43
43
44
44
export { FallbackServiceError } ;
45
45
export { PathTemplate } from './pathTemplate' ;
@@ -135,7 +135,7 @@ export class GrpcClient {
135
135
}
136
136
137
137
loadProtoJSON ( json : protobuf . INamespace , ignoreCache = false ) {
138
- const hash = objectHash ( json ) . toString ( ) ;
138
+ const hash = objectHash ( JSON . stringify ( json ) ) . toString ( ) ;
139
139
const cached = GrpcClient . protoCache . get ( hash ) ;
140
140
if ( cached && ! ignoreCache ) {
141
141
return cached ;
Original file line number Diff line number Diff line change @@ -292,7 +292,7 @@ export class GrpcClient {
292
292
}
293
293
294
294
loadProtoJSON ( json : protobuf . INamespace , ignoreCache = false ) {
295
- const hash = objectHash ( json ) . toString ( ) ;
295
+ const hash = objectHash ( JSON . stringify ( json ) ) . toString ( ) ;
296
296
const cached = GrpcClient . protoCache . get ( hash ) ;
297
297
if ( cached && ! ignoreCache ) {
298
298
return cached ;
Original file line number Diff line number Diff line change @@ -357,7 +357,7 @@ describe('v1beta1.EchoClient', () => {
357
357
) ;
358
358
} ) ;
359
359
360
- it . only ( 'invokes echo with closed client' , async ( ) => {
360
+ it ( 'invokes echo with closed client' , async ( ) => {
361
361
const client = new echoModule . v1beta1 . EchoClient ( {
362
362
credentials : { client_email : 'bogus' , private_key : 'bogus' } ,
363
363
projectId : 'bogus' ,
You can’t perform that action at this time.
0 commit comments