Skip to content

Commit

Permalink
Fix gRPC library upgrade issue with e2e test (#533)
Browse files Browse the repository at this point in the history
* Fix intercepting listener in e2e test

Signed-off-by: Shubham Sharma <[email protected]>

* Rollback runtime version

Signed-off-by: Shubham Sharma <[email protected]>

* Revert rollback

Signed-off-by: Shubham Sharma <[email protected]>

---------

Signed-off-by: Shubham Sharma <[email protected]>
  • Loading branch information
shubham1172 authored Oct 13, 2023
1 parent 76ab322 commit b063e10
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/e2e/grpc/clientWithApiToken.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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);
Expand Down

0 comments on commit b063e10

Please sign in to comment.