Commit d8070bd4 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #50456 from liggitt/extra-steps

Automatic merge from submit-queue (batch tested with PRs 49488, 50407, 46105, 50456, 50258) Detect missing steps in edit testcases If a testcase specifies extra steps that are not exercised, that should be a test failure
parents b9b875f0 5a4ac692
...@@ -280,6 +280,9 @@ func TestEdit(t *testing.T) { ...@@ -280,6 +280,9 @@ func TestEdit(t *testing.T) {
t.Errorf("%s: expected to see '%s' in stderr\n\nstdout:\n%s\n\nstderr:\n%s", name, s, stdout, stderr) t.Errorf("%s: expected to see '%s' in stderr\n\nstdout:\n%s\n\nstderr:\n%s", name, s, stdout, stderr)
} }
} }
if i < len(testcase.Steps) {
t.Errorf("%s: saw %d steps, testcase included %d additional steps that were not exercised", name, i, len(testcase.Steps)-i)
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment