diff --git a/docker/resource_docker_secret_test.go b/docker/resource_docker_secret_test.go index 3e10271c..4cb026bd 100644 --- a/docker/resource_docker_secret_test.go +++ b/docker/resource_docker_secret_test.go @@ -96,10 +96,10 @@ func TestAccDockerSecret_labels(t *testing.T) { } `, Check: resource.ComposeTestCheckFunc( - resource.TestCheckResourceAttr("docker_secret.foo", fmt.Sprintf("labels.%s.label", hashStringLabel("test1")), "test1"), - resource.TestCheckResourceAttr("docker_secret.foo", fmt.Sprintf("labels.%s.value", hashStringLabel("test1")), "foo"), - resource.TestCheckResourceAttr("docker_secret.foo", fmt.Sprintf("labels.%s.label", hashStringLabel("test2")), "test1"), - resource.TestCheckResourceAttr("docker_secret.foo", fmt.Sprintf("labels.%s.value", hashStringLabel("test2")), "bar"), + resource.TestCheckResourceAttr("docker_secret.foo", fmt.Sprintf("labels.%v.label", hashStringLabel("test1")), "test1"), + resource.TestCheckResourceAttr("docker_secret.foo", fmt.Sprintf("labels.%v.value", hashStringLabel("test1")), "foo"), + resource.TestCheckResourceAttr("docker_secret.foo", fmt.Sprintf("labels.%v.label", hashStringLabel("test2")), "test1"), + resource.TestCheckResourceAttr("docker_secret.foo", fmt.Sprintf("labels.%v.value", hashStringLabel("test2")), "bar"), ), }, },