Commit da002ffb authored by Joshua Gutow's avatar Joshua Gutow Committed by GitHub

op-e2e: Avoid panics on conductor startup failure (#10247)

parent c6518593
......@@ -147,7 +147,9 @@ func setupHAInfra(t *testing.T, ctx context.Context) (*System, map[string]*condu
}
for _, c := range conductors {
if serr := c.service.Stop(ctx); serr != nil {
if c == nil || c.service == nil {
// pass. Sometimes we can get nil in this map
} else if serr := c.service.Stop(ctx); serr != nil {
t.Log("Failed to stop conductor", "error", serr)
}
}
......
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