update test engine

This commit is contained in:
Carlosokumu 2024-10-12 13:33:13 +03:00
parent 70e234aa7c
commit c21a48c78e
Signed by untrusted user: carlos
GPG Key ID: 7BD6BC8160A5C953

View File

@ -79,8 +79,12 @@ func TestEngine(sessionId string) (engine.Engine, func(), chan bool) {
os.Exit(1) os.Exit(1)
} }
if AccountService == nil {
AccountService = &server.AccountService{}
}
switch AccountService.(type) { switch AccountService.(type) {
case *server.MockAccountService: case *server.TestAccountService:
go func() { go func() {
eventChannel <- false eventChannel <- false
}() }()