diff options
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 } |
