mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 06:01:50 +00:00
Fixing a lot of string formatting issues with regards to:
* Improper format specifier (e.g. %s for bools or %s for ints) * More or less parameters than format specifiers * Not calling a formatting function when it should have (e.g. Error() instead of Errorf())
This commit is contained in:
@@ -340,7 +340,7 @@ func TestPolicy(t *testing.T) {
|
||||
for _, test := range tests {
|
||||
matches := test.policy.matches(test.attr)
|
||||
if test.matches != matches {
|
||||
t.Errorf("unexpected value for %s, expected: %s, saw: %s", test.name, test.matches, matches)
|
||||
t.Errorf("unexpected value for %s, expected: %t, saw: %t", test.name, test.matches, matches)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user