PoAn Yang created YUNIKORN-1855:
-----------------------------------

             Summary: Fix error comment in scheduler_cache_test.go
                 Key: YUNIKORN-1855
                 URL: https://issues.apache.org/jira/browse/YUNIKORN-1855
             Project: Apache YuniKorn
          Issue Type: Improvement
          Components: shim - kubernetes
            Reporter: PoAn Yang
            Assignee: PoAn Yang


In the test case {{{}TestAssignedPod{}}}, the comment is "{{{}// the cached 
node has no pods assigned{}}}", but we do "{{{}assert.Equal(t, 
len(cachedNode.Pods), 1){}}}".

 

In the test case {{{}TestAddPod{}}}, the comment is "{{{}// assumed pod should 
no longer be assumed if node changes{}}}", but we do "{{{}assert.Check(t, 
cache.isAssumedPod(podUID1), "pod is not assumed"){}}}".



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to