test: gpu: add fake target for grpc.Dial

In preparation for grpc 1.52.0.

Signed-off-by: Tuomas Katila <tuomas.katila@intel.com>
This commit is contained in:
Tuomas Katila 2023-01-12 11:37:59 +02:00
parent ba50e34dab
commit 527f638367

View File

@ -86,8 +86,10 @@ func (w *mockPodResources) GetAllocatableResources(ctx context.Context,
}
func newMockResourceManager(pods []v1.Pod) ResourceManager {
client, err := grpc.Dial("", grpc.WithTransportCredentials(insecure.NewCredentials()))
client, err := grpc.Dial("fake", grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
fmt.Fprintf(os.Stderr, "failed to create client: %v\n", err)
os.Exit(1)
}