From 114dec7c19e7adbba58ba9654e9347e775ca820c Mon Sep 17 00:00:00 2001 From: Aditya-Sood Date: Thu, 7 Sep 2023 14:45:26 +0530 Subject: [PATCH 1/2] Fixes typo in error message --- interop/xds/custom_lb_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interop/xds/custom_lb_test.go b/interop/xds/custom_lb_test.go index fc3a7f71c5c9..328814d8e6fd 100644 --- a/interop/xds/custom_lb_test.go +++ b/interop/xds/custom_lb_test.go @@ -66,7 +66,7 @@ func (s) TestCustomLB(t *testing.T) { } rpcBMD := md.Get("rpc-behavior") if len(rpcBMD) != 1 { - errCh.Send(errors.New("only one value received for metadata key rpc-behavior")) + errCh.Send(errors.New("only one value should be received for metadata key rpc-behavior")) return &testpb.SimpleResponse{}, nil } wantVal := "error-code-0" From cf8cd28b6770956ebb3c44d8263bb95021ad7dc2 Mon Sep 17 00:00:00 2001 From: Aditya-Sood Date: Mon, 11 Sep 2023 20:47:09 +0530 Subject: [PATCH 2/2] Increment: Adds code review changes --- interop/xds/custom_lb_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interop/xds/custom_lb_test.go b/interop/xds/custom_lb_test.go index 328814d8e6fd..5c5204553f08 100644 --- a/interop/xds/custom_lb_test.go +++ b/interop/xds/custom_lb_test.go @@ -66,7 +66,7 @@ func (s) TestCustomLB(t *testing.T) { } rpcBMD := md.Get("rpc-behavior") if len(rpcBMD) != 1 { - errCh.Send(errors.New("only one value should be received for metadata key rpc-behavior")) + errCh.Send(fmt.Errorf("received %d values for metadata key rpc-behavior, want 1", len(rpcBMD))) return &testpb.SimpleResponse{}, nil } wantVal := "error-code-0"