Skip to content

Commit 57dcb71

Browse files
authored
interop/xds: improve error message (#6614)
1 parent 254bccb commit 57dcb71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interop/xds/custom_lb_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func (s) TestCustomLB(t *testing.T) {
6666
}
6767
rpcBMD := md.Get("rpc-behavior")
6868
if len(rpcBMD) != 1 {
69-
errCh.Send(errors.New("only one value received for metadata key rpc-behavior"))
69+
errCh.Send(fmt.Errorf("received %d values for metadata key rpc-behavior, want 1", len(rpcBMD)))
7070
return &testpb.SimpleResponse{}, nil
7171
}
7272
wantVal := "error-code-0"

0 commit comments

Comments
 (0)