fix: don't panic when test cannot start

This commit is contained in:
Mikhail Mazurskiy 2022-07-04 11:23:44 +10:00
parent e061db8c13
commit 9e16c79951
No known key found for this signature in database
GPG Key ID: FA7917C48932DD55
1 changed files with 4 additions and 2 deletions

View File

@ -82,9 +82,11 @@ 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 {
process.Close()
delete(processes, port) delete(processes, port)
} }
}
return nil return nil
} }