mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 23:47:50 +00:00
update testapi to eliminate redundant fields
This commit is contained in:
@@ -44,7 +44,7 @@ func (f *fakePortForwarder) ForwardPorts(method string, url *url.URL, config *cl
|
||||
}
|
||||
|
||||
func TestPortForward(t *testing.T) {
|
||||
version := testapi.Default.Version()
|
||||
version := testapi.Default.GroupVersion().Version
|
||||
|
||||
tests := []struct {
|
||||
name, version, podPath, pfPath, container string
|
||||
@@ -114,7 +114,7 @@ func TestPortForward(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestPortForwardWithPFlag(t *testing.T) {
|
||||
version := testapi.Default.Version()
|
||||
version := testapi.Default.GroupVersion().Version
|
||||
|
||||
tests := []struct {
|
||||
name, version, podPath, pfPath, container string
|
||||
|
||||
Reference in New Issue
Block a user