Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for getPodIP (1.02 sec)

  1. pkg/registry/core/pod/strategy_test.go

    						{IP: "10.0.0.10"},
    						{IP: "10.0.0.20"},
    					},
    				},
    			},
    			expectedIP: "10.0.0.10",
    		},
    	}
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			podIP := getPodIP(tc.pod)
    			if podIP != tc.expectedIP {
    				t.Errorf("expected pod ip:%v does not match actual %v", tc.expectedIP, podIP)
    			}
    		})
    	}
    }
    
    type fakeTransport struct {
    	val string
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 76.2K bytes
    - Viewed (0)
Back to top