Skip to content

Commit

Permalink
Adding simple case for the gRPC's reflection v1
Browse files Browse the repository at this point in the history
  • Loading branch information
olegbespalov authored and codebien committed Sep 19, 2023
1 parent f9f7670 commit 81005d8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions js/modules/k6/grpc/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,18 @@ func TestClient(t *testing.T) {
code: `client.connect("GRPCBIN_ADDR", {reflect: true})`,
},
},
{
name: "ReflectV1",
setup: func(tb *httpmultibin.HTTPMultiBin) {
reflection.RegisterV1(tb.ServerGRPC)
},
initString: codeBlock{
code: `var client = new grpc.Client();`,
},
vuString: codeBlock{
code: `client.connect("GRPCBIN_ADDR", {reflect: true})`,
},
},
{
name: "ReflectBadParam",
setup: func(tb *httpmultibin.HTTPMultiBin) {
Expand Down

0 comments on commit 81005d8

Please sign in to comment.