mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #18107 from serathius/e2e-error-log
Improve e2e error reporting
This commit is contained in:
@@ -255,7 +255,11 @@ func (ep *EtcdServerProcess) Close() error {
|
||||
|
||||
func (ep *EtcdServerProcess) waitReady(ctx context.Context) error {
|
||||
defer close(ep.donec)
|
||||
return WaitReadyExpectProc(ctx, ep.proc, EtcdServerReadyLines)
|
||||
err := WaitReadyExpectProc(ctx, ep.proc, EtcdServerReadyLines)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to find etcd ready lines %q, err: %w", EtcdServerReadyLines, err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (ep *EtcdServerProcess) Config() *EtcdServerProcessConfig { return ep.cfg }
|
||||
|
||||
Reference in New Issue
Block a user