Merge pull request #18107 from serathius/e2e-error-log

Improve e2e error reporting
This commit is contained in:
Marek Siarkowicz
2024-06-07 13:58:59 +02:00
committed by GitHub
3 changed files with 8 additions and 4 deletions

View File

@@ -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 }