Test that null communicator conforms to interface
This commit is contained in:
parent
542fbf3947
commit
21373a0568
16
communicator/none/communicator_test.go
Normal file
16
communicator/none/communicator_test.go
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
package none
|
||||||
|
|
||||||
|
import (
|
||||||
|
"testing"
|
||||||
|
|
||||||
|
"github.com/mitchellh/packer/packer"
|
||||||
|
)
|
||||||
|
|
||||||
|
func TestCommIsCommunicator(t *testing.T) {
|
||||||
|
var raw interface{}
|
||||||
|
raw = &comm{}
|
||||||
|
if _, ok := raw.(packer.Communicator); !ok {
|
||||||
|
t.Fatalf("comm must be a communicator")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user