From b063e10e4b1a122fe7bc266d1681ca0727b6a522 Mon Sep 17 00:00:00 2001 From: Shubham Sharma Date: Fri, 13 Oct 2023 09:43:12 +0000 Subject: [PATCH] Fix gRPC library upgrade issue with e2e test (#533) * Fix intercepting listener in e2e test Signed-off-by: Shubham Sharma * Rollback runtime version Signed-off-by: Shubham Sharma * Revert rollback Signed-off-by: Shubham Sharma --------- Signed-off-by: Shubham Sharma --- test/e2e/grpc/clientWithApiToken.test.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/e2e/grpc/clientWithApiToken.test.ts b/test/e2e/grpc/clientWithApiToken.test.ts index 64980a10..2747a571 100644 --- a/test/e2e/grpc/clientWithApiToken.test.ts +++ b/test/e2e/grpc/clientWithApiToken.test.ts @@ -15,7 +15,6 @@ import * as grpc from "@grpc/grpc-js"; import { CommunicationProtocolEnum, DaprClient, LogLevel } from "../../../src"; import { DaprClient as DaprClientGrpc } from "../../../src/proto/dapr/proto/runtime/v1/dapr_grpc_pb"; import { Empty } from "google-protobuf/google/protobuf/empty_pb"; -import { InterceptingListener } from "@grpc/grpc-js/build/src/call-stream"; import { NextCall } from "@grpc/grpc-js/build/src/client-interceptors"; const daprHost = "localhost"; @@ -38,8 +37,8 @@ describe("grpc/client with api token", () => { return new grpc.InterceptingCall(nextCall(options), { start: function ( metadata: grpc.Metadata, - listener: InterceptingListener, - next: (metadata: grpc.Metadata, listener: InterceptingListener | grpc.Listener) => void, + listener: grpc.InterceptingListener, + next: (metadata: grpc.Metadata, listener: grpc.InterceptingListener | grpc.Listener) => void, ) { mockMetadataRes = metadata; next(metadata, listener);