clean up orphaned java processes

This commit is contained in:
Clint Shryock
2015-09-03 09:49:39 -05:00
parent a337df435e
commit 9dbe6c0e02

View File

@@ -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 {