MCPcopy
hub / github.com/gofiber/fiber / stop

Method stop

client/helper_test.go:51–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49}
50
51func (ts *testServer) stop() {
52 ts.tb.Helper()
53
54 if err := ts.app.Shutdown(); err != nil {
55 ts.tb.Fatal(err)
56 }
57
58 select {
59 case <-ts.ch:
60 case <-time.After(time.Second):
61 ts.tb.Fatalf("timeout when waiting for server close")
62 }
63}
64
65func (ts *testServer) dial() func(addr string) (net.Conn, error) {
66 ts.tb.Helper()

Callers 13

Test_Response_StatusFunction · 0.80
Test_Response_ProtocolFunction · 0.80
Test_Response_HeaderFunction · 0.80
Test_Response_HeadersFunction · 0.80
Benchmark_HeadersFunction · 0.80
Test_Response_CookieFunction · 0.80
Test_Response_BodyFunction · 0.80
Test_Response_SaveFunction · 0.80
Test_Response_BodyStreamFunction · 0.80

Calls 3

ShutdownMethod · 0.80
FatalMethod · 0.65
FatalfMethod · 0.65

Tested by

no test coverage detected