MCPcopy
hub / github.com/etcd-io/etcd / waitForServer

Function waitForServer

pkg/proxy/server_test.go:643–649  ·  view source on GitHub ↗

Waits until a proxy is ready to serve. Aborts test on proxy start-up error.

(t *testing.T, s Server)

Source from the content-addressed store, hash-verified

641// Waits until a proxy is ready to serve.
642// Aborts test on proxy start-up error.
643func waitForServer(t *testing.T, s Server) {
644 select {
645 case <-s.Ready():
646 case err := <-s.Error():
647 t.Fatal(err)
648 }
649}

Callers 9

testServerFunction · 0.85
testServerDelayAcceptFunction · 0.85
TestServer_PauseTxFunction · 0.85
TestServer_BlackholeTxFunction · 0.85
TestServer_ShutdownFunction · 0.85
testServerHTTPFunction · 0.85

Calls 3

ReadyMethod · 0.65
ErrorMethod · 0.65
FatalMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…