post-processor/docker-tag: fix failing test

This commit is contained in:
Mitchell Hashimoto 2015-05-29 16:35:41 -07:00
parent 819986d19f
commit 6109c51115
1 changed files with 4 additions and 5 deletions

View File

@ -76,11 +76,10 @@ func TestPostProcessor_PostProcess(t *testing.T) {
func TestPostProcessor_PostProcess_Force(t *testing.T) {
driver := &docker.MockDriver{}
p := &PostProcessor{Driver: driver}
config := testConfig()
config["force"] = true
_, err := common.DecodeConfig(&p.config, config)
if err != nil {
t.Fatalf("err %s", err)
c := testConfig()
c["force"] = true
if err := p.Configure(c); err != nil {
t.Fatalf("err: %s", err)
}
artifact := &packer.MockArtifact{