(opts StartOptions)
| 365 | } |
| 366 | |
| 367 | func (d *dockerRunnable) Init(opts StartOptions) Runnable { |
| 368 | if opts.WaitReadyBackoff == nil { |
| 369 | opts.WaitReadyBackoff = &backoff.Config{ |
| 370 | Min: 300 * time.Millisecond, |
| 371 | Max: 600 * time.Millisecond, |
| 372 | MaxRetries: 50, // Sometimes the CI is slow ¯\_(ツ)_/¯. |
| 373 | } |
| 374 | } |
| 375 | |
| 376 | d.opts = opts |
| 377 | d.waitBackoffReady = backoff.New(context.Background(), *opts.WaitReadyBackoff) |
| 378 | return d |
| 379 | } |
| 380 | |
| 381 | func (d *dockerRunnable) WithPorts(ports map[string]int) RunnableBuilder { |
| 382 | d.ports = ports |
nothing calls this directly
no outgoing calls
no test coverage detected