MCPcopy
hub / github.com/grpc/grpc-go / wait

Method wait

internal/transport/transport_test.go:553–562  ·  view source on GitHub ↗
(t *testing.T, timeout time.Duration)

Source from the content-addressed store, hash-verified

551}
552
553func (s *server) wait(t *testing.T, timeout time.Duration) {
554 select {
555 case err := <-s.startedErr:
556 if err != nil {
557 t.Fatal(err)
558 }
559 case <-time.After(timeout):
560 t.Fatalf("Timed out after %v waiting for server to be ready", timeout)
561 }
562}
563
564func (s *server) stop() {
565 s.lis.Close()

Callers 1

setUpServerOnlyFunction · 0.45

Calls 2

FatalMethod · 0.65
FatalfMethod · 0.65

Tested by

no test coverage detected