We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8c5c54 commit 74f9fe6Copy full SHA for 74f9fe6
pkg/internal/testing/controlplane/etcd.go
@@ -159,6 +159,10 @@ func (e *Etcd) setProcessState() error {
159
// Stop stops this process gracefully, waits for its termination, and cleans up
160
// the DataDir if necessary.
161
func (e *Etcd) Stop() error {
162
+ if e.processState == nil {
163
+ return nil
164
+ }
165
+
166
if e.processState.DirNeedsCleaning {
167
e.DataDir = "" // reset the directory if it was randomly allocated, so that we can safely restart
168
}
0 commit comments