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

Method Ready

env_docker.go:551–562  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

549}
550
551func (d *dockerRunnable) Ready() error {
552 if !d.IsRunning() {
553 return errors.Newf("service %s is stopped", d.Name())
554 }
555
556 // Ensure the service has a readiness probe configure.
557 if d.opts.Readiness == nil {
558 return nil
559 }
560
561 return d.opts.Readiness.Ready(d)
562}
563
564func (d *dockerRunnable) containerName() string {
565 return dockerNetworkContainerHost(d.usedNetworkName, d.Name())

Callers 1

WaitReadyMethod · 0.95

Calls 3

IsRunningMethod · 0.95
NameMethod · 0.95
ReadyMethod · 0.65

Tested by

no test coverage detected