Auto-calculate allowed-not-ready-nodes in test framework

This commit is contained in:
Shyam Jeedigunta 2018-05-15 17:30:59 +02:00
parent d2952c0b2e
commit 6514dd656c

View File

@ -374,4 +374,8 @@ func AfterReadingAllFlags(t *TestContextType) {
t.Host = defaultHost t.Host = defaultHost
} }
} }
// Allow 1% of nodes to be unready (statistically) - relevant for large clusters.
if t.AllowedNotReadyNodes == 0 {
t.AllowedNotReadyNodes = t.CloudConfig.NumNodes / 100
}
} }