forked from urdt/ussd
update test engine
This commit is contained in:
parent
70e234aa7c
commit
c21a48c78e
@ -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
|
||||||
}()
|
}()
|
||||||
|
Loading…
Reference in New Issue
Block a user