forked from mirror/redis
fix: don't panic when test cannot start
This commit is contained in:
parent
e061db8c13
commit
9e16c79951
|
@ -82,8 +82,10 @@ func (s *clusterScenario) newClusterClient(
|
||||||
|
|
||||||
func (s *clusterScenario) Close() error {
|
func (s *clusterScenario) Close() error {
|
||||||
for _, port := range s.ports {
|
for _, port := range s.ports {
|
||||||
processes[port].Close()
|
if process, ok := processes[port]; ok {
|
||||||
delete(processes, port)
|
process.Close()
|
||||||
|
delete(processes, port)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue