diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-10-23 22:51:10 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-10-23 22:59:02 +0900 |
| commit | dd94818f20c7a37bdd7c6129551759db1b09b65e (patch) | |
| tree | 1ea7c94b3f6aec92f037a3e58dc343c3b00cd5a2 /internal/app/app_test.go | |
| parent | 0fd357e7f64ec029489bbbcc7935005a26cb9a13 (diff) | |
hst/instance: define instance state
This is now part of the hst API. This change also improves identifier generation and serialisation.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/app_test.go')
| -rw-r--r-- | internal/app/app_test.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/internal/app/app_test.go b/internal/app/app_test.go index b562f8ee..96113eb8 100644 --- a/internal/app/app_test.go +++ b/internal/app/app_test.go @@ -22,7 +22,6 @@ import ( "hakurei.app/container/fhs" "hakurei.app/container/seccomp" "hakurei.app/hst" - "hakurei.app/internal/app/state" "hakurei.app/message" "hakurei.app/system" "hakurei.app/system/acl" @@ -38,7 +37,7 @@ func TestApp(t *testing.T) { name string k syscallDispatcher config *hst.Config - id state.ID + id hst.ID wantSys *system.I wantParams *container.Params }{ @@ -212,7 +211,7 @@ func TestApp(t *testing.T) { Args: []string{"/run/current-system/sw/bin/zsh"}, Flags: hst.FUserns | hst.FHostNet | hst.FHostAbstract | hst.FTty | hst.FShareRuntime | hst.FShareTmpdir, - }}, state.ID{ + }}, hst.ID{ 0x4a, 0x45, 0x0b, 0x65, 0x96, 0xd7, 0xbc, 0x15, 0xbd, 0x01, 0x78, 0x0e, @@ -336,7 +335,7 @@ func TestApp(t *testing.T) { Flags: hst.FUserns | hst.FHostNet | hst.FHostAbstract | hst.FTty | hst.FShareRuntime | hst.FShareTmpdir, }, - }, state.ID{ + }, hst.ID{ 0xeb, 0xf0, 0x83, 0xd1, 0xb1, 0x75, 0x91, 0x17, 0x82, 0xd4, 0x13, 0x36, @@ -490,7 +489,7 @@ func TestApp(t *testing.T) { DirectWayland: true, Identity: 1, Groups: []string{}, - }, state.ID{ + }, hst.ID{ 0x8e, 0x2c, 0x76, 0xb0, 0x66, 0xda, 0xbe, 0x57, 0x4c, 0xf0, 0x73, 0xbd, |
