Get runner accpet tests to work
This commit is contained in:
parent
b223ea2b6c
commit
f864d6aa26
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user