MCPcopy Create free account
hub / github.com/fvbock/endless / stopTestServer

Function stopTestServer

test/test_restarting.go:63–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61}
62
63func stopTestServer() (err error) {
64 log.Println("* Wait 5 seconds and then send kill -15 to server")
65 time.Sleep(time.Second * 5)
66 log.Println("* kill -15")
67 cmd := exec.Command("./test/stop_server.sh", []string{}...)
68 cmd.Stdout = os.Stdout
69 cmd.Stderr = os.Stderr
70
71 err = cmd.Start()
72 if err != nil {
73 log.Println("kill error:", err)
74 return
75 }
76
77 err = cmd.Wait()
78 if err != nil {
79 log.Println("kill error:", err)
80 }
81 return
82}
83
84func keepRestartingServer() {
85 time.Sleep(time.Second * 1)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…