MCPcopy Create free account
hub / github.com/ddev/ddev / StartAndWait

Method StartAndWait

pkg/ddevapp/ddevapp.go:3066–3075  ·  view source on GitHub ↗

StartAndWait is primarily for use in tests. It does app.Start() but then waits for extra seconds before returning. extraSleep arg in seconds is the time to wait if > 0

(extraSleep int)

Source from the content-addressed store, hash-verified

3064// before returning.
3065// extraSleep arg in seconds is the time to wait if > 0
3066func (app *DdevApp) StartAndWait(extraSleep int) error {
3067 err := app.Start()
3068 if err != nil {
3069 return err
3070 }
3071 if extraSleep > 0 {
3072 time.Sleep(time.Duration(extraSleep) * time.Second)
3073 }
3074 return nil
3075}
3076
3077// DetermineSettingsPathLocation figures out the path to the settings file for
3078// an app based on the contents/existence of app.SiteSettingsPath and

Callers 13

TestPHPOverridesFunction · 0.95
TestDdevMysqlWorksFunction · 0.95
TestDdevLogsFunction · 0.95
TestDdevDescribeFunction · 0.95
TestGetLocalHTTPResponseFunction · 0.95
TestHttpsRedirectionFunction · 0.80
TestGetAllURLsFunction · 0.80
TestProjectPortOverrideFunction · 0.80
TestTraefikSimpleFunction · 0.80
TestTraefikVirtualHostFunction · 0.80

Calls 1

StartMethod · 0.95

Tested by 13

TestPHPOverridesFunction · 0.76
TestDdevMysqlWorksFunction · 0.76
TestDdevLogsFunction · 0.76
TestDdevDescribeFunction · 0.76
TestGetLocalHTTPResponseFunction · 0.76
TestHttpsRedirectionFunction · 0.64
TestGetAllURLsFunction · 0.64
TestProjectPortOverrideFunction · 0.64
TestTraefikSimpleFunction · 0.64
TestTraefikVirtualHostFunction · 0.64