summaryrefslogtreecommitdiffstats
path: root/test/xdsserver_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/xdsserver_test.go')
-rw-r--r--test/xdsserver_test.go2
1 files changed, 1 insertions, 1 deletions
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()
}