MCPcopy Create free account
hub / github.com/efficientgo/e2e / Init

Method Init

env_docker.go:367–379  ·  view source on GitHub ↗
(opts StartOptions)

Source from the content-addressed store, hash-verified

365}
366
367func (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
381func (d *dockerRunnable) WithPorts(ports map[string]int) RunnableBuilder {
382 d.ports = ports

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected