mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 13:45:06 +00:00
fix 'go vet' warnings
This commit is contained in:
@@ -130,7 +130,7 @@ func TestGetFloat(t *testing.T) {
|
||||
for _, test := range tests {
|
||||
val := GetFloatResource(test.res, test.name, test.def)
|
||||
if val != test.expected {
|
||||
t.Errorf("expected: %d found %d", test.expected, val)
|
||||
t.Errorf("expected: %f found %f", test.expected, val)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -163,7 +163,7 @@ func TestGetString(t *testing.T) {
|
||||
for _, test := range tests {
|
||||
val := GetStringResource(test.res, test.name, test.def)
|
||||
if val != test.expected {
|
||||
t.Errorf("expected: %d found %d", test.expected, val)
|
||||
t.Errorf("expected: %s found %s", test.expected, val)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user