diff options
Diffstat (limited to 'internal/app/export_linux_test.go')
| -rw-r--r-- | internal/app/export_linux_test.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/internal/app/export_linux_test.go b/internal/app/export_linux_test.go index 73c9df9a..f7af527f 100644 --- a/internal/app/export_linux_test.go +++ b/internal/app/export_linux_test.go @@ -7,17 +7,16 @@ import ( "hakurei.app/system" ) -func NewWithID(id state.ID, os sys.State) App { - a := new(app) +func NewWithID(id state.ID, os sys.State) *App { + a := new(App) a.id = newID(&id) a.sys = os return a } -func AppIParams(a App, sa SealedApp) (*system.I, *container.Params) { - v := a.(*app) +func AppIParams(a *App, sa SealedApp) (*system.I, *container.Params) { seal := sa.(*outcome) - if v.outcome != seal || v.id != seal.id { + if a.outcome != seal || a.id != seal.id { panic("broken app/outcome link") } return seal.sys, seal.container |
