X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fxds%2Fxds-server.git;a=blobdiff_plain;f=test%2Fxdsserver_test.go;h=68206a923724d0af4275d3dbabb48dddb3f239fe;hp=89f73a62b93faf722b3249c5a25e80509f8a5eb0;hb=18f11577cce8b8a1282013312ea95e4955005e94;hpb=9cc4aa5bcfa8fbab2d367fde9bc5ba4ff204c5e7 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() }