integration-cli: exit early if daemon immedately crashed
this reduces execution of TestInfoDiscoveryInvalidAdvertise from 11s to 0.2s Signed-off-by: Alexander Morozov <lk4d4@docker.com> Upstream-commit: 0f217cead8260ab45f9749074d954e5e9e76187b Component: engine
This commit is contained in:
@ -233,6 +233,8 @@ func (d *Daemon) StartWithLogFile(out *os.File, providedArgs ...string) error {
|
||||
return fmt.Errorf("[%s] error querying daemon for root directory: %v", d.id, err)
|
||||
}
|
||||
return nil
|
||||
case <-d.wait:
|
||||
return fmt.Errorf("[%s] Daemon exited during startup", d.id)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user