mirror of
https://github.com/intel/intel-device-plugins-for-kubernetes.git
synced 2025-06-03 03:59:37 +00:00
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:
parent
ba50e34dab
commit
527f638367
@ -86,8 +86,10 @@ func (w *mockPodResources) GetAllocatableResources(ctx context.Context,
|
|||||||
}
|
}
|
||||||
|
|
||||||
func newMockResourceManager(pods []v1.Pod) ResourceManager {
|
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 {
|
if err != nil {
|
||||||
|
fmt.Fprintf(os.Stderr, "failed to create client: %v\n", err)
|
||||||
|
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user