Merge pull request #2141 from ash2k/ash2k/fix-test-panic

fix: don't panic when test cannot start
This commit is contained in:
Vladimir Mihailenco 2022-07-28 14:28:25 +03:00 committed by GitHub
commit ae6c6deaf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -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
} }