From 1cfdb2ffb8dc3daf2afca89627d52697f16e7077 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Tue, 9 Apr 2019 11:04:26 -0700 Subject: [PATCH] TestContainersAPICreateMountsCreate: minor optimization Don't use two-stage mount in TestContainersAPICreateMountsCreate(); apparently it was written before mount.Mount() could accept propagation flags. While at it, remove rw as this is the default. Signed-off-by: Kir Kolyshkin --- integration-cli/docker_api_containers_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/integration-cli/docker_api_containers_test.go b/integration-cli/docker_api_containers_test.go index 3318f9fab8..44924f5af4 100644 --- a/integration-cli/docker_api_containers_test.go +++ b/integration-cli/docker_api_containers_test.go @@ -2115,8 +2115,7 @@ func (s *DockerSuite) TestContainersAPICreateMountsCreate(c *check.C) { assert.NilError(c, err) defer os.RemoveAll(tmpDir3) - c.Assert(mount.Mount(tmpDir3, tmpDir3, "none", "bind,rw"), checker.IsNil) - c.Assert(mount.ForceMount("", tmpDir3, "none", "shared"), checker.IsNil) + c.Assert(mount.Mount(tmpDir3, tmpDir3, "none", "bind,shared"), checker.IsNil) cases = append(cases, []testCase{ {