From c64b8163e79d47f1e710c1d067589bb393f8463c Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 21 Feb 2025 16:00:31 +0900 Subject: app: separate instance from process state This works better for the implementation. Signed-off-by: Ophestra --- internal/app/export_test.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'internal/app/export_test.go') 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 } -- cgit v1.3.1