Get runner accpet tests to work

This commit is contained in:
sophia 2021-07-21 13:10:19 -05:00 committed by Paul Hinze
parent b223ea2b6c
commit f864d6aa26
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0
2 changed files with 12 additions and 11 deletions

View File

@ -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

View File

@ -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