MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / stopNodes

Function stopNodes

cmd/cqld/bench_test.go:110–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

108}
109
110func stopNodes() {
111 var wg sync.WaitGroup
112
113 for _, nodeCmd := range nodeCmds {
114 wg.Add(1)
115 go func(thisCmd *utils.CMD) {
116 defer wg.Done()
117 thisCmd.Cmd.Process.Signal(syscall.SIGTERM)
118 thisCmd.Cmd.Wait()
119 grepRace := exec.Command("/bin/sh", "-c", "grep -a -A 50 'DATA RACE' "+thisCmd.LogPath)
120 out, _ := grepRace.Output()
121 if len(out) > 2 {
122 log.Fatalf("DATA RACE in %s :\n%s", thisCmd.Cmd.Path, string(out))
123 }
124 }(nodeCmd)
125 }
126 wg.Wait()
127 nodeCmds = nil
128}
129
130func TestStartBP_CallRPC(t *testing.T) {
131 log.SetLevel(log.DebugLevel)

Callers 2

TestCQLDFunction · 0.70
TestStartBP_CallRPCFunction · 0.70

Calls 3

FatalfFunction · 0.92
WaitMethod · 0.80
AddMethod · 0.45

Tested by

no test coverage detected