Skip to content

Commit ae6c6de

Browse files
authored
Merge pull request #2141 from ash2k/ash2k/fix-test-panic
fix: don't panic when test cannot start
2 parents 60081bd + 9e16c79 commit ae6c6de

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cluster_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,10 @@ func (s *clusterScenario) newClusterClient(
8282

8383
func (s *clusterScenario) Close() error {
8484
for _, port := range s.ports {
85-
processes[port].Close()
86-
delete(processes, port)
85+
if process, ok := processes[port]; ok {
86+
process.Close()
87+
delete(processes, port)
88+
}
8789
}
8890
return nil
8991
}

0 commit comments

Comments
 (0)