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)
| 3064 | // before returning. |
| 3065 | // extraSleep arg in seconds is the time to wait if > 0 |
| 3066 | func (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 |