aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/export_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/app/export_test.go')
-rw-r--r--internal/app/export_test.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/internal/app/export_test.go b/internal/app/export_test.go
index b7ee7f73..3e5db9fb 100644
--- a/internal/app/export_test.go
+++ b/internal/app/export_test.go
@@ -1,17 +1,16 @@
package app
import (
+ "context"
+
"hakurei.app/container"
"hakurei.app/internal/app/state"
"hakurei.app/internal/sys"
"hakurei.app/system"
)
-func NewWithID(id state.ID, os sys.State) *App {
- a := new(App)
- a.id = newID(&id)
- a.sys = os
- return a
+func NewWithID(ctx context.Context, id state.ID, os sys.State) *App {
+ return &App{id: newID(&id), sys: os, ctx: ctx}
}
func AppIParams(a *App, seal *Outcome) (*system.I, *container.Params) {