func (c *ClusterV3) Terminate(t *testing.T) { for _, client := range c.clients { if err := client.Close(); err != nil { t.Error(err) } } c.cluster.Terminate(t) }
func (c *ClusterV3) Terminate(t *testing.T) { c.mu.Lock() for _, client := range c.clients { if client == nil { continue } if err := client.Close(); err != nil { t.Error(err) } } c.mu.Unlock() c.cluster.Terminate(t) }