From c21a48c78ee0541b9f88db0701c9f229d4bb05a2 Mon Sep 17 00:00:00 2001 From: Carlosokumu Date: Sat, 12 Oct 2024 13:33:13 +0300 Subject: [PATCH] update test engine --- internal/testutil/TestEngine.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/testutil/TestEngine.go b/internal/testutil/TestEngine.go index af086ac..8daf387 100644 --- a/internal/testutil/TestEngine.go +++ b/internal/testutil/TestEngine.go @@ -79,8 +79,12 @@ func TestEngine(sessionId string) (engine.Engine, func(), chan bool) { os.Exit(1) } + if AccountService == nil { + AccountService = &server.AccountService{} + } + switch AccountService.(type) { - case *server.MockAccountService: + case *server.TestAccountService: go func() { eventChannel <- false }()