From f0514e4c1a535cbdb6ad204031f765f9cdfa7516 Mon Sep 17 00:00:00 2001 From: dongeunsuh Date: Wed, 29 May 2019 15:35:54 +0900 Subject: [PATCH] Fix typos in variable name Fix 'nodeCacheMap' into 'NodeCacheMap' Fix 'nodeLocationMap' into 'NodeLocationMap' --- gpuschedulerplugin/gpu_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gpuschedulerplugin/gpu_test.go b/gpuschedulerplugin/gpu_test.go index def09987..8c9ab34b 100644 --- a/gpuschedulerplugin/gpu_test.go +++ b/gpuschedulerplugin/gpu_test.go @@ -44,14 +44,14 @@ func TestTree(t *testing.T) { AddResourcesToNodeTreeCache("B", nodeRes2) AddResourcesToNodeTreeCache("C", nodeRes3) AddResourcesToNodeTreeCache("D", types.ResourceList{"ABCD": 4}) - for key, val := range nodeCacheMap { + for key, val := range NodeCacheMap { fmt.Printf("Key\n") sctypes.PrintTreeNode(key) fmt.Printf("Val: %v\n", val) } RemoveNodeFromNodeTreeCache("A") fmt.Printf("After removal\n") - for key, val := range nodeCacheMap { + for key, val := range NodeCacheMap { fmt.Printf("Key\n") sctypes.PrintTreeNode(key) fmt.Printf("Val: %v\n", val) @@ -88,12 +88,12 @@ func TestTree(t *testing.T) { } RemoveNodeFromNodeTreeCache("B") fmt.Printf("Now should have only one\n") - for key, val := range nodeCacheMap { + for key, val := range NodeCacheMap { fmt.Printf("Key\n") sctypes.PrintTreeNode(key) fmt.Printf("Val: %v\n", val) } - fmt.Printf("LocationMap :%v\n", nodeLocationMap) + fmt.Printf("LocationMap :%v\n", NodeLocationMap) ConvertToBestGPURequests(podInfo) expectedPodInfo = &types.PodInfo{ RunningContainers: map[string]types.ContainerInfo{