shut down GRPC client after running QueryGRPC against a cluster

If you don't shut the client down, it leaves two goroutines running forever.
This commit is contained in:
Seebs 2021-02-22 16:01:45 -06:00
parent 66ed216023
commit 8eaa4e592f

View file

@ -81,6 +81,7 @@ func (c *Cluster) QueryGRPC(t testing.TB, index, query string) *proto.TableRespo
if err != nil {
t.Fatalf("getting GRPC client: %v", err)
}
defer grpcClient.Close()
tableResp, err := grpcClient.QueryUnary(context.Background(), index, query)
if err != nil {