From 73013f53bb8ace93ccf35e287d39e2adf2f956ca Mon Sep 17 00:00:00 2001 From: alfred-mk Date: Wed, 2 Oct 2024 15:52:55 +0300 Subject: [PATCH] added engine Finish --- engine/engine.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/engine/engine.go b/engine/engine.go index 5fe0977..e66dc0c 100644 --- a/engine/engine.go +++ b/engine/engine.go @@ -83,7 +83,12 @@ func TestEngine(sessionId string) (engine.Engine, func()) { en = en.WithFirst(hl.Init) cleanFn := func() { - err := menuStorageService.Close() + err := en.Finish() + if err != nil { + logg.Errorf(err.Error()) + } + + err = menuStorageService.Close() if err != nil { logg.Errorf(err.Error()) }