go-vise

Constrained Size Output Virtual Machine
Info | Log | Files | Refs | README | LICENSE

commit f56356bdd8554ee8c9574d80cb3e363ad248307a
parent fa0c7a0043bdbf05a175b94d463d705b6e1f6647
Author: lash <dev@holbrook.no>
Date:   Mon,  2 Sep 2024 01:33:30 +0100

Finish persister setup for engine

Diffstat:
Mengine/db_test.go | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/engine/db_test.go b/engine/db_test.go @@ -94,10 +94,14 @@ func TestDbEnginePersist(t *testing.T) { FlagCount: 1, SessionId: "bar", } + store := memdb.NewMemDb() + store.Connect(ctx, "") + pe := persist.NewPersister(store) rs := resource.NewMenuResource() rs.WithCodeGetter(codeGet) rs.AddLocalFunc("foo", flagSet) en := NewDbEngine(cfg, rs) + en = en.WithPersister(pe) cont, err := en.Init(ctx) if err != nil { t.Fatal(err)