update test engine

This commit is contained in:
2024-10-12 13:33:13 +03:00
parent 70e234aa7c
commit c21a48c78e

View File

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