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

Function stopNodes

cmd/cql-minerd/integration_test.go:348–366  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

346}
347
348func stopNodes() {
349 var wg sync.WaitGroup
350
351 for _, nodeCmd := range nodeCmds {
352 wg.Add(1)
353 go func(thisCmd *utils.CMD) {
354 defer wg.Done()
355 thisCmd.Cmd.Process.Signal(syscall.SIGTERM)
356 thisCmd.Cmd.Wait()
357 grepRace := exec.Command("/bin/sh", "-c", "grep -a -A 50 'DATA RACE' "+thisCmd.LogPath)
358 out, _ := grepRace.Output()
359 if len(out) > 2 {
360 log.Fatalf("DATA RACE in %s :\n%s", thisCmd.Cmd.Path, string(out))
361 }
362 }(nodeCmd)
363 }
364
365 wg.Wait()
366}
367
368func TestFullProcess(t *testing.T) {
369 log.SetLevel(log.DebugLevel)

Callers 2

TestFullProcessFunction · 0.70
benchMinerFunction · 0.70

Calls 3

FatalfFunction · 0.92
WaitMethod · 0.80
AddMethod · 0.45

Tested by

no test coverage detected