From 8084620911e9be77d4199c7ded8ed265a197fa7a Mon Sep 17 00:00:00 2001 From: Ian Whitlock Date: Wed, 8 Apr 2020 07:35:42 -0500 Subject: [PATCH] MM-23824 Clean up orphaned plugin process at test completion (#14235) * Clean up orphaned plugin process at test completion * Add supervisor shutdown to second test for consistency --- plugin/health_check_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/health_check_test.go b/plugin/health_check_test.go index 84a971d371..7f478283b7 100644 --- a/plugin/health_check_test.go +++ b/plugin/health_check_test.go @@ -61,6 +61,7 @@ func testPluginHealthCheckSuccess(t *testing.T) { supervisor, err := newSupervisor(bundle, nil, log, nil) require.Nil(t, err) require.NotNil(t, supervisor) + defer supervisor.Shutdown() err = supervisor.PerformHealthCheck() require.Nil(t, err) @@ -107,6 +108,7 @@ func testPluginHealthCheckPanic(t *testing.T) { supervisor, err := newSupervisor(bundle, nil, log, nil) require.Nil(t, err) require.NotNil(t, supervisor) + defer supervisor.Shutdown() err = supervisor.PerformHealthCheck() require.Nil(t, err)