From: Clément Bénier Date: Tue, 21 Aug 2018 16:06:09 +0000 (+0200) Subject: test xds-server: explicitly kill process X-Git-Tag: 5.99.5~2^2~2 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fxds%2Fxds-server.git;a=commitdiff_plain;h=18f11577cce8b8a1282013312ea95e4955005e94 test xds-server: explicitly kill process Change-Id: If28b332c51318ff264f247c7f52a5dc253c20a0f Signed-off-by: Clément Bénier --- diff --git a/test/xdsserver_test.go b/test/xdsserver_test.go index 89f73a6..68206a9 100644 --- a/test/xdsserver_test.go +++ b/test/xdsserver_test.go @@ -204,7 +204,6 @@ func TestMain(m *testing.M) { log.Fatalf("status=%v\n err=%v\n", status, err) } }(proc) - defer proc.Kill() defer fileXdsServer.Close() } time.Sleep(1 * time.Second) @@ -224,4 +223,5 @@ func TestMain(m *testing.M) { } res := m.Run() defer os.Exit(res) + proc.Kill() }