mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-21 09:36:51 +00:00
fix: panic in integration tests
This commit is contained in:
committed by
Michal Horejsek
parent
6023162443
commit
79e6799f40
@ -71,6 +71,9 @@ func (api *FakePMAPI) CloseConnections() {
|
||||
}
|
||||
|
||||
func (api *FakePMAPI) checkAndRecordCall(method method, path string, request interface{}) error {
|
||||
api.controller.locker.Lock()
|
||||
defer api.controller.locker.Unlock()
|
||||
|
||||
if err := api.checkInternetAndRecordCall(method, path, request); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user