added engine Finish

This commit is contained in:
Alfred Kamanda 2024-10-02 15:52:55 +03:00
parent 986f3979fb
commit 73013f53bb
Signed by untrusted user: Alfred-mk
GPG Key ID: 7EA3D01708908703

View File

@ -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())
}