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 <kolyshkin@gmail.com>
| ... | ... |
@@ -2115,8 +2115,7 @@ func (s *DockerSuite) TestContainersAPICreateMountsCreate(c *check.C) {
|
| 2115 | 2115 |
assert.NilError(c, err) |
| 2116 | 2116 |
defer os.RemoveAll(tmpDir3) |
| 2117 | 2117 |
|
| 2118 |
- c.Assert(mount.Mount(tmpDir3, tmpDir3, "none", "bind,rw"), checker.IsNil) |
|
| 2119 |
- c.Assert(mount.ForceMount("", tmpDir3, "none", "shared"), checker.IsNil)
|
|
| 2118 |
+ c.Assert(mount.Mount(tmpDir3, tmpDir3, "none", "bind,shared"), checker.IsNil) |
|
| 2120 | 2119 |
|
| 2121 | 2120 |
cases = append(cases, []testCase{
|
| 2122 | 2121 |
{
|