summaryrefslogtreecommitdiff
path: root/internal/namespace
diff options
context:
space:
mode:
Diffstat (limited to 'internal/namespace')
-rw-r--r--internal/namespace/lifecycle_test.go6
-rw-r--r--internal/namespace/pinning.go2
2 files changed, 4 insertions, 4 deletions
diff --git a/internal/namespace/lifecycle_test.go b/internal/namespace/lifecycle_test.go
index 9962e14..3e01ea9 100644
--- a/internal/namespace/lifecycle_test.go
+++ b/internal/namespace/lifecycle_test.go
@@ -87,7 +87,7 @@ func TestLifecycleReferenceCounting(t *testing.T) {
if err := RegisterProcess(pm, profile); err != nil {
t.Fatal(err)
}
-
+
// Simulate the application flow: Unregister before checking if we are the last one
if err := UnregisterProcess(pm, profile); err != nil {
t.Fatal(err)
@@ -102,12 +102,12 @@ func TestLifecycleReferenceCounting(t *testing.T) {
if err := os.WriteFile(filepath.Join(pidsDir, "1234567"), []byte(""), 0644); err != nil {
t.Fatal(err)
}
-
+
// Register a real process so that pruning has something to do
if err := RegisterProcess(pm, profile); err != nil {
t.Fatal(err)
}
-
+
// Prune the stale one
if err := PruneStalePids(pm, profile); err != nil {
t.Fatal(err)
diff --git a/internal/namespace/pinning.go b/internal/namespace/pinning.go
index 9bf4fee..00f7c9b 100644
--- a/internal/namespace/pinning.go
+++ b/internal/namespace/pinning.go
@@ -72,7 +72,7 @@ func UnpinNamespace(pm *paths.PathManager, profile string) error {
}
// 3. Unmount and clean up blocking services.
- // Since the block files are located within the profile directory,
+ // Since the block files are located within the profile directory,
// we must unmount them before we can remove the directory.
for _, p := range GetBlockPaths() {
_ = unix.Unmount(p, unix.MNT_DETACH)