diff --git a/internal/core/testing_project.go b/internal/core/testing_project.go index 3c69ac312..799604d8e 100644 --- a/internal/core/testing_project.go +++ b/internal/core/testing_project.go @@ -19,17 +19,16 @@ import ( ) var TestingTypeMap = map[component.Type]interface{}{ - component.AuthenticatorType: (*component.Authenticator)(nil), - component.CommandType: (*component.Command)(nil), - component.CommunicatorType: (*component.Communicator)(nil), - component.ConfigType: (*component.Config)(nil), - component.GuestType: (*component.Guest)(nil), - component.HostType: (*component.Host)(nil), - component.LogPlatformType: (*component.LogPlatform)(nil), - component.LogViewerType: (*component.LogViewer)(nil), - component.ProviderType: (*component.Provider)(nil), - component.ProvisionerType: (*component.Provisioner)(nil), - component.SyncedFolderType: (*component.SyncedFolder)(nil), + component.CommandType: (*component.Command)(nil), + component.CommunicatorType: (*component.Communicator)(nil), + component.ConfigType: (*component.Config)(nil), + component.GuestType: (*component.Guest)(nil), + component.HostType: (*component.Host)(nil), + component.LogPlatformType: (*component.LogPlatform)(nil), + component.LogViewerType: (*component.LogViewer)(nil), + component.ProviderType: (*component.Provider)(nil), + component.ProvisionerType: (*component.Provisioner)(nil), + component.SyncedFolderType: (*component.SyncedFolder)(nil), } // TestTarget returns a fully in-memory and side-effect free Target that diff --git a/internal/runner/accept_test.go b/internal/runner/accept_test.go index 7a54fa2de..190ecca5c 100644 --- a/internal/runner/accept_test.go +++ b/internal/runner/accept_test.go @@ -32,6 +32,7 @@ func TestRunnerAccept(t *testing.T) { // Setup our runner client := singleprocess.TestServer(t) runner := TestRunner(t, WithClient(client)) + defer runner.Close() require.NoError(runner.Start()) // Initialize our basis @@ -68,6 +69,7 @@ func TestRunnerAccept_cancelContext(t *testing.T) { // Setup our runner client := singleprocess.TestServer(t) runner := TestRunner(t, WithClient(client)) + defer runner.Close() require.NoError(runner.Start()) // Initialize our basis