()
| 1300 | } |
| 1301 | |
| 1302 | func (a *AgentClient) getApp() (*app.App, error) { |
| 1303 | ap, ok := a.apps.Load(uint64(0)) |
| 1304 | if !ok { |
| 1305 | return nil, fmt.Errorf("app not found") |
| 1306 | } |
| 1307 | |
| 1308 | // type assertion on the app |
| 1309 | h, ok := ap.(*app.App) |
| 1310 | if !ok { |
| 1311 | return nil, fmt.Errorf("failed to type assert app") |
| 1312 | } |
| 1313 | |
| 1314 | return h, nil |
| 1315 | } |
| 1316 | |
| 1317 | // ComposeDownOnSetupFailure tears down the managed docker-compose stack so a |
| 1318 | // retry after a per-test-set setup failure (e.g. agent-readiness timeout) does |
no test coverage detected