mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2025-12-25 09:09:35 -05:00
provider/docker: Fixing the Docker Container Mount Test
``` make testacc TEST=./builtin/providers/docker TESTARGS='-run=TestAccDockerContainer_' ==> Checking that code complies with gofmt requirements... go generate $(go list ./... | grep -v /vendor/) TF_ACC=1 go test ./builtin/providers/docker -v -run=TestAccDockerContainer_ -timeout 120m === RUN TestAccDockerContainer_basic --- PASS: TestAccDockerContainer_basic (17.25s) === RUN TestAccDockerContainer_volume --- PASS: TestAccDockerContainer_volume (16.79s) === RUN TestAccDockerContainer_customized --- PASS: TestAccDockerContainer_customized (19.65s) PASS ok github.com/hashicorp/terraform/builtin/providers/docker 53.712s ```
This commit is contained in:
parent
4ec88d82ab
commit
ae92cc7e30
1 changed files with 2 additions and 2 deletions
|
|
@ -29,8 +29,8 @@ func TestAccDockerContainer_volume(t *testing.T) {
|
|||
var c dc.Container
|
||||
|
||||
testCheck := func(*terraform.State) error {
|
||||
if len(c.Mounts) != 2 {
|
||||
return fmt.Errorf("Incorrect number of mounts: expected 2, got %d", len(c.Mounts))
|
||||
if len(c.Mounts) != 1 {
|
||||
return fmt.Errorf("Incorrect number of mounts: expected 1, got %d", len(c.Mounts))
|
||||
}
|
||||
|
||||
for _, v := range c.Mounts {
|
||||
|
|
|
|||
Loading…
Reference in a new issue