From 6109c511156b071a94c360cddfa19743c3e20fbf Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 29 May 2015 16:35:41 -0700 Subject: [PATCH] post-processor/docker-tag: fix failing test --- post-processor/docker-tag/post-processor_test.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/post-processor/docker-tag/post-processor_test.go b/post-processor/docker-tag/post-processor_test.go index 1501a3e15..1c0221c1f 100644 --- a/post-processor/docker-tag/post-processor_test.go +++ b/post-processor/docker-tag/post-processor_test.go @@ -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{