diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-10-09 05:04:08 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-10-09 05:18:19 +0900 |
| commit | 87b5c30ef6d5b7b8a10d6a5a8610054c403923e6 (patch) | |
| tree | 805116c39a623bb30fc532af47ea3ed78b7304c0 /internal/app/app_test.go | |
| parent | df9b77b077d967d35082adb8ab3b00dd67d7bc97 (diff) | |
message: relocate from container
This package is quite useful. This change allows it to be imported without importing container.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/app_test.go')
| -rw-r--r-- | internal/app/app_test.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/internal/app/app_test.go b/internal/app/app_test.go index 9cab3581..7dcbc7d0 100644 --- a/internal/app/app_test.go +++ b/internal/app/app_test.go @@ -23,12 +23,13 @@ import ( "hakurei.app/container/fhs" "hakurei.app/hst" "hakurei.app/internal/app/state" + "hakurei.app/message" "hakurei.app/system" "hakurei.app/system/acl" ) func TestApp(t *testing.T) { - msg := container.NewMsg(nil) + msg := message.NewMsg(nil) msg.SwapVerbose(testing.Verbose()) testCases := []struct { @@ -744,8 +745,8 @@ func (k *stubNixOS) cmdOutput(cmd *exec.Cmd) ([]byte, error) { } } -func (k *stubNixOS) overflowUid(container.Msg) int { return 65534 } -func (k *stubNixOS) overflowGid(container.Msg) int { return 65534 } +func (k *stubNixOS) overflowUid(message.Msg) int { return 65534 } +func (k *stubNixOS) overflowGid(message.Msg) int { return 65534 } func (k *stubNixOS) mustHsuPath() *check.Absolute { return m("/proc/nonexistent/hsu") } |
