diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-09-29 02:33:10 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-09-29 06:11:47 +0900 |
| commit | 46cd3a28c83e93b5d66c52d06a8366c11910d5c0 (patch) | |
| tree | 6e25c5078b5cd9de78b7a6c9b253f1132358812b /internal/app/app_stub_test.go | |
| parent | ad1bc6794f0053c3e63eab408a0d530d53e8b51c (diff) | |
container: remove global msg
This frees all container instances of side effects.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/app_stub_test.go')
| -rw-r--r-- | internal/app/app_stub_test.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/internal/app/app_stub_test.go b/internal/app/app_stub_test.go index ff218492..8d33cd15 100644 --- a/internal/app/app_stub_test.go +++ b/internal/app/app_stub_test.go @@ -6,6 +6,8 @@ import ( "log" "os/exec" "os/user" + + "hakurei.app/container" ) type stubNixOS struct { @@ -187,10 +189,10 @@ func (k *stubNixOS) cmdOutput(cmd *exec.Cmd) ([]byte, error) { } } -func (k *stubNixOS) overflowUid() int { return 65534 } -func (k *stubNixOS) overflowGid() int { return 65534 } +func (k *stubNixOS) overflowUid(container.Msg) int { return 65534 } +func (k *stubNixOS) overflowGid(container.Msg) int { return 65534 } -func (k *stubNixOS) mustHsuPath() string { return "/proc/nonexistent/hsu" } +func (k *stubNixOS) mustHsuPath() *container.Absolute { return m("/proc/nonexistent/hsu") } func (k *stubNixOS) fatalf(format string, v ...any) { panic(fmt.Sprintf(format, v...)) } |
