mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-20 09:06:45 +00:00
test: some work on integration tests (fake)
This commit is contained in:
@ -103,14 +103,13 @@ func (api *FakePMAPI) checkInternetAndRecordCall(method method, path string, req
|
||||
return nil
|
||||
}
|
||||
|
||||
// TODO: This should be sent back to the ClientManager properly!
|
||||
func (api *FakePMAPI) sendAuth(auth *pmapi.Auth) {
|
||||
if auth != nil {
|
||||
auth.DANGEROUSLYSetUID(api.uid)
|
||||
}
|
||||
if api.auths != nil {
|
||||
api.auths <- auth
|
||||
}
|
||||
go func() {
|
||||
api.controller.clientManager.GetClientAuthChannel() <- pmapi.ClientAuth{
|
||||
UserID: api.user.ID,
|
||||
Auth: auth,
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
||||
func (api *FakePMAPI) setUser(username string) error {
|
||||
|
||||
Reference in New Issue
Block a user