diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-07-18 23:18:26 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-07-18 23:18:26 +0900 |
| commit | 9d7a19d162e7003ce89804f00c526b77b2328baa (patch) | |
| tree | 115badd81cd1824cfc58bb0c573a210dd5209d73 /system/mkdir_test.go | |
| parent | 6ba19a7ba5c36a4276dceeab9a5d158c5d9738a0 (diff) | |
container: use more reliable nonexistence
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'system/mkdir_test.go')
| -rw-r--r-- | system/mkdir_test.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/system/mkdir_test.go b/system/mkdir_test.go index 4b00bb35..706b3d1f 100644 --- a/system/mkdir_test.go +++ b/system/mkdir_test.go @@ -3,6 +3,8 @@ package system import ( "os" "testing" + + "hakurei.app/container" ) func TestEnsure(t *testing.T) { @@ -60,11 +62,11 @@ func TestMkdirString(t *testing.T) { t.Run(tc.want, func(t *testing.T) { m := &Mkdir{ et: tc.et, - path: "/nonexistent", + path: container.Nonexistent, perm: 0701, ephemeral: tc.ephemeral, } - want := "mode: " + os.FileMode(0701).String() + " type: " + tc.want + " path: \"/nonexistent\"" + want := "mode: " + os.FileMode(0701).String() + " type: " + tc.want + ` path: "/proc/nonexistent"` if got := m.String(); got != want { t.Errorf("String() = %v, want %v", got, want) } |
