diff --git a/templates/typescript_gapic/test/gapic_$service_$version.ts.njk b/templates/typescript_gapic/test/gapic_$service_$version.ts.njk index 9c06fbf46..194b8e5ef 100644 --- a/templates/typescript_gapic/test/gapic_$service_$version.ts.njk +++ b/templates/typescript_gapic/test/gapic_$service_$version.ts.njk @@ -39,7 +39,7 @@ function generateSampleMessage(instance: T) { .toObject(instance as protobuf.Message, {defaults: true}); return (instance.constructor as typeof protobuf.Message).fromObject(filledObject) as T; } -{%- if (service.simpleMethods.length + service.paging.length > 0) %} +{%- if (service.simpleMethods.length + service.paging.length + service.longRunning.length > 0) %} function stubSimpleCall(response?: ResponseType, error?: Error) { return error ? sinon.stub().rejects(error) : sinon.stub().resolves([response]);