Commit 6514dd65 authored by Shyam Jeedigunta's avatar Shyam Jeedigunta

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

parent d2952c0b
...@@ -374,4 +374,8 @@ func AfterReadingAllFlags(t *TestContextType) { ...@@ -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
}
} }
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