forked from Silverfish/proton-bridge
Fixing unit tests for client manager.
* [x] pmapi: refresh auth uid won't change
* [x] bridge tests:
* update mocks
* delete auth when FinishLogin fails
* check for mailbox password
* add `gomock.InOrder` for better test control
* [x] fix linter issues except TODOs
* [x] make rootScheme unexported
* [x] store tests: update mocks
This commit is contained in:
@ -41,7 +41,7 @@ func setTestDialerWithPinning(cm *ClientManager) (*int, *DialerWithPinning) {
|
||||
func TestTLSPinValid(t *testing.T) {
|
||||
cm := NewClientManager(testLiveConfig)
|
||||
cm.host = liveAPI
|
||||
RootScheme = "https"
|
||||
rootScheme = "https"
|
||||
called, _ := setTestDialerWithPinning(cm)
|
||||
client := cm.GetClient("pmapi" + t.Name())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user