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>
(cherry picked from commit 1cfdb2ffb8dc3daf2afca89627d52697f16e7077)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -2092,8 +2092,7 @@ func (s *DockerSuite) TestContainersAPICreateMountsCreate(c *check.C) {
|
| 2092 | 2092 |
assert.NilError(c, err) |
| 2093 | 2093 |
defer os.RemoveAll(tmpDir3) |
| 2094 | 2094 |
|
| 2095 |
- c.Assert(mount.Mount(tmpDir3, tmpDir3, "none", "bind,rw"), checker.IsNil) |
|
| 2096 |
- c.Assert(mount.ForceMount("", tmpDir3, "none", "shared"), checker.IsNil)
|
|
| 2095 |
+ c.Assert(mount.Mount(tmpDir3, tmpDir3, "none", "bind,shared"), checker.IsNil) |
|
| 2097 | 2096 |
|
| 2098 | 2097 |
cases = append(cases, []testCase{
|
| 2099 | 2098 |
{
|