()
| 108 | } |
| 109 | |
| 110 | func 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 | |
| 130 | func TestStartBP_CallRPC(t *testing.T) { |
| 131 | log.SetLevel(log.DebugLevel) |
no test coverage detected