Test that null communicator conforms to interface

pull/3668/head
Evan Powell 10 years ago
parent 542fbf3947
commit 21373a0568

@ -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…
Cancel
Save