diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-02-21 16:00:31 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-02-21 16:06:24 +0900 |
| commit | c64b8163e79d47f1e710c1d067589bb393f8463c (patch) | |
| tree | c4ffa5b89982af6362f1d65bf2ff2af299600574 /internal/app/export_test.go | |
| parent | 9d9a165379798acb237c9071ea865f26cfba8be7 (diff) | |
app: separate instance from process state
This works better for the implementation.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/export_test.go')
| -rw-r--r-- | internal/app/export_test.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/internal/app/export_test.go b/internal/app/export_test.go index af52912b..199b6c1f 100644 --- a/internal/app/export_test.go +++ b/internal/app/export_test.go @@ -14,7 +14,11 @@ func NewWithID(id fst.ID, os sys.State) fst.App { return a } -func AppSystemBwrap(a fst.App) (*system.I, *bwrap.Config) { +func AppSystemBwrap(a fst.App, sa fst.SealedApp) (*system.I, *bwrap.Config) { v := a.(*app) - return v.appSeal.sys, v.appSeal.container + seal := sa.(*outcome) + if v.outcome != seal || v.id != seal.id { + panic("broken app/outcome link") + } + return seal.sys, seal.container } |
