()
| 346 | } |
| 347 | |
| 348 | func 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 | |
| 368 | func TestFullProcess(t *testing.T) { |
| 369 | log.SetLevel(log.DebugLevel) |
no test coverage detected