mirror of https://github.com/go-redis/redis.git
Merge pull request #2141 from ash2k/ash2k/fix-test-panic
fix: don't panic when test cannot start
This commit is contained in:
commit
ae6c6deaf4
|
@ -82,9 +82,11 @@ func (s *clusterScenario) newClusterClient(
|
|||
|
||||
func (s *clusterScenario) Close() error {
|
||||
for _, port := range s.ports {
|
||||
processes[port].Close()
|
||||
if process, ok := processes[port]; ok {
|
||||
process.Close()
|
||||
delete(processes, port)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue