mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
e2e: fix output test assertion
The format string didn't match the parameters.
This commit is contained in:
parent
a1128e380c
commit
c80eec19dd
@ -44,7 +44,7 @@ func TestGinkgoOutput(t *testing.T, expected SuiteResults) {
|
|||||||
// Now check the output.
|
// Now check the output.
|
||||||
actual := normalizeReport(report)
|
actual := normalizeReport(report)
|
||||||
|
|
||||||
if assert.Equal(t, len(expected), len(actual), "Should have %d test results, got: %v", actual) {
|
if assert.Equal(t, len(expected), len(actual), "Should have %d test results, got: %v", len(expected), actual) {
|
||||||
for i := 0; i < len(expected); i++ {
|
for i := 0; i < len(expected); i++ {
|
||||||
assert.Equal(t, expected[i].Name, actual[i].Name, "name from test #%d", i)
|
assert.Equal(t, expected[i].Name, actual[i].Name, "name from test #%d", i)
|
||||||
output := actual[i].Output
|
output := actual[i].Output
|
||||||
|
Loading…
Reference in New Issue
Block a user