mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
clean up orphaned java processes
This commit is contained in:
@@ -98,6 +98,12 @@ func TestJavaDriver_Start_Wait(t *testing.T) {
|
||||
// expect the timeout b/c it's a long lived process
|
||||
break
|
||||
}
|
||||
|
||||
// need to kill long lived process
|
||||
err = handle.Kill()
|
||||
if err != nil {
|
||||
t.Fatalf("Error: %s", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestJavaDriver_Start_Kill_Wait(t *testing.T) {
|
||||
@@ -137,6 +143,12 @@ func TestJavaDriver_Start_Kill_Wait(t *testing.T) {
|
||||
case <-time.After(2 * time.Second):
|
||||
t.Fatalf("timeout")
|
||||
}
|
||||
|
||||
// need to kill long lived process
|
||||
err = handle.Kill()
|
||||
if err != nil {
|
||||
t.Fatalf("Error: %s", err)
|
||||
}
|
||||
}
|
||||
|
||||
func cleanupFile(path string) error {
|
||||
|
||||
Reference in New Issue
Block a user