This is an automated email from the ASF dual-hosted git repository.

manirajv06 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-k8shim.git


The following commit(s) were added to refs/heads/master by this push:
     new 14b10c24 [YUNIKORN-3355] Addendum PR: To remove duplicate test code 
(#1077)
14b10c24 is described below

commit 14b10c2464df0dbec898b0d9efdcd855162c7d92
Author: Manikandan R <[email protected]>
AuthorDate: Tue Aug 25 12:11:45 2026 +0530

    [YUNIKORN-3355] Addendum PR: To remove duplicate test code (#1077)
    
    Closes: #1077
    
    Signed-off-by: Manikandan R <[email protected]>
---
 pkg/cache/external/scheduler_cache_test.go | 36 ------------------------------
 1 file changed, 36 deletions(-)

diff --git a/pkg/cache/external/scheduler_cache_test.go 
b/pkg/cache/external/scheduler_cache_test.go
index e64d0301..280024bf 100644
--- a/pkg/cache/external/scheduler_cache_test.go
+++ b/pkg/cache/external/scheduler_cache_test.go
@@ -1323,39 +1323,3 @@ func TestRemoveNodeWithBoundPod(t *testing.T) {
        // nolint:staticcheck
        assert.Equal(t, len(cache.GetNode(host1).Pods), 1, "adopted pod is not 
added to the node")
 }
-
-// newTestNode returns a node with a name of host1 and enough capacity for the 
test pods
-func newTestNode() *v1.Node {
-       resourceList := make(map[v1.ResourceName]resource.Quantity)
-       resourceList[v1.ResourceName("memory")] = 
*resource.NewQuantity(1024*1000*1000, resource.DecimalSI)
-       resourceList[v1.ResourceName("cpu")] = *resource.NewQuantity(10, 
resource.DecimalSI)
-       return &v1.Node{
-               ObjectMeta: apis.ObjectMeta{
-                       Name:      host1,
-                       Namespace: "default",
-                       UID:       nodeUID1,
-               },
-               Status: v1.NodeStatus{
-                       Allocatable: resourceList,
-               },
-               Spec: v1.NodeSpec{
-                       Unschedulable: false,
-               },
-       }
-}
-
-// newTestPod returns an unassigned pod with a name of podName1
-func newTestPod() *v1.Pod {
-       return &v1.Pod{
-               TypeMeta: apis.TypeMeta{
-                       Kind:       "Pod",
-                       APIVersion: "v1",
-               },
-               ObjectMeta: apis.ObjectMeta{
-                       Name:      podName1,
-                       Namespace: "default",
-                       UID:       podUID1,
-               },
-               Spec: v1.PodSpec{},
-       }
-}


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

Reply via email to