mirror of
https://github.com/redis/go-redis.git
synced 2025-07-23 21:01:00 +03:00
Merge pull request #2141 from ash2k/ash2k/fix-test-panic
fix: don't panic when test cannot start
This commit is contained in:
@ -82,8 +82,10 @@ func (s *clusterScenario) newClusterClient(
|
||||
|
||||
func (s *clusterScenario) Close() error {
|
||||
for _, port := range s.ports {
|
||||
processes[port].Close()
|
||||
delete(processes, port)
|
||||
if process, ok := processes[port]; ok {
|
||||
process.Close()
|
||||
delete(processes, port)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user