aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/state/state_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-10-23 22:51:10 +0900
committerOphestra <cat@gensokyo.uk>2025-10-23 22:59:02 +0900
commitdd94818f20c7a37bdd7c6129551759db1b09b65e (patch)
tree1ea7c94b3f6aec92f037a3e58dc343c3b00cd5a2 /internal/app/state/state_test.go
parent0fd357e7f64ec029489bbbcc7935005a26cb9a13 (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/state/state_test.go')
-rw-r--r--internal/app/state/state_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/app/state/state_test.go b/internal/app/state/state_test.go
index baada60d..2e191f31 100644
--- a/internal/app/state/state_test.go
+++ b/internal/app/state/state_test.go
@@ -28,7 +28,7 @@ func testStore(t *testing.T, s state.Store) {
tl
)
- var tc [tl]state.State
+ var tc [tl]hst.State
for i := 0; i < tl; i++ {
makeState(t, &tc[i])
}
@@ -122,8 +122,8 @@ func testStore(t *testing.T, s state.Store) {
})
}
-func makeState(t *testing.T, s *state.State) {
- if err := state.NewAppID(&s.ID); err != nil {
+func makeState(t *testing.T, s *hst.State) {
+ if err := hst.NewInstanceID(&s.ID); err != nil {
t.Fatalf("cannot create dummy state: %v", err)
}
s.PID = rand.Int()