Browse code

integ-cli: fix cleanup in test which mounts tmpfs

Docker-DCO-1.1-Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com> (github: unclejack)

unclejack authored on 2014/11/21 02:37:46
Showing 1 changed files
... ...
@@ -1257,6 +1257,7 @@ func TestRunWithVolumesIsRecursive(t *testing.T) {
1257 1257
 	if err := mount.Mount("tmpfs", tmpfsDir, "tmpfs", ""); err != nil {
1258 1258
 		t.Fatalf("failed to create a tmpfs mount at %s - %s", tmpfsDir, err)
1259 1259
 	}
1260
+	defer mount.Unmount(tmpfsDir)
1260 1261
 
1261 1262
 	f, err := ioutil.TempFile(tmpfsDir, "touch-me")
1262 1263
 	if err != nil {