Skip to content

Commit 9e16c79

Browse files
committed
fix: don't panic when test cannot start
1 parent e061db8 commit 9e16c79

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)