Merge pull request #38281 from mwielgus/fix-e2e-util-most

Automatic merge from submit-queue (batch tested with PRs 38282, 38281)

Fix skip logic in e2e framework

Fixes 37792

cc: @wojtek-t
This commit is contained in:
Kubernetes Submit Queue 2016-12-07 05:33:12 -08:00 committed by GitHub
commit 2b1ab2f0d4

View File

@ -294,7 +294,7 @@ func SkipUnlessNodeCountIsAtLeast(minNodeCount int) {
}
func SkipUnlessNodeCountIsAtMost(maxNodeCount int) {
if TestContext.CloudConfig.NumNodes <= maxNodeCount {
if TestContext.CloudConfig.NumNodes > maxNodeCount {
Skipf("Requires at most %d nodes (not %d)", maxNodeCount, TestContext.CloudConfig.NumNodes)
}
}