fix tests
This commit is contained in:
parent
307f56f560
commit
ff549e0b23
|
@ -801,9 +801,9 @@ func TestCoreBuild_provRetry(t *testing.T) {
|
|||
pString := new(MockProvisioner)
|
||||
pInt := new(MockProvisioner)
|
||||
config.Components.ProvisionerStore = MapOfProvisioner{
|
||||
"test-string": func() (Provisioner, error) { return pString, nil },
|
||||
"test-string": func() (packersdk.Provisioner, error) { return pString, nil },
|
||||
// backwards compatibility
|
||||
"test-integer": func() (Provisioner, error) { return pInt, nil },
|
||||
"test-integer": func() (packersdk.Provisioner, error) { return pInt, nil },
|
||||
}
|
||||
core := TestCore(t, config)
|
||||
|
||||
|
|
|
@ -91,7 +91,7 @@ func TestProvisionHook_cancel(t *testing.T) {
|
|||
// TODO(mitchellh): Test that they're run in the proper order
|
||||
|
||||
func TestPausedProvisioner_impl(t *testing.T) {
|
||||
var _ Provisioner = new(PausedProvisioner)
|
||||
var _ packersdk.Provisioner = new(PausedProvisioner)
|
||||
}
|
||||
|
||||
func TestPausedProvisionerPrepare(t *testing.T) {
|
||||
|
@ -174,7 +174,7 @@ func TestPausedProvisionerCancel(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestDebuggedProvisioner_impl(t *testing.T) {
|
||||
var _ Provisioner = new(DebuggedProvisioner)
|
||||
var _ packersdk.Provisioner = new(DebuggedProvisioner)
|
||||
}
|
||||
|
||||
func TestDebuggedProvisionerPrepare(t *testing.T) {
|
||||
|
@ -234,7 +234,7 @@ func TestDebuggedProvisionerCancel(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestRetriedProvisioner_impl(t *testing.T) {
|
||||
var _ Provisioner = new(RetriedProvisioner)
|
||||
var _ packersdk.Provisioner = new(RetriedProvisioner)
|
||||
}
|
||||
|
||||
func TestRetriedProvisionerPrepare(t *testing.T) {
|
||||
|
|
Loading…
Reference in New Issue