test: use clientmanager to logout fakeapi

This commit is contained in:
James Houlahan
2020-04-20 12:26:11 +02:00
parent 99635cd56d
commit e027aa5fae
5 changed files with 68 additions and 36 deletions

View File

@ -66,7 +66,7 @@ func NewController(cm *pmapi.ClientManager) *Controller {
}
cm.SetClientConstructor(func(userID string) pmapi.Client {
fakeAPI := New(controller)
fakeAPI := New(controller, userID)
controller.fakeAPIs = append(controller.fakeAPIs, fakeAPI)
return fakeAPI
})