mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2026-02-14 12:48:33 +00:00
GODT-35: New pmapi client and manager using resty
This commit is contained in:
@ -26,6 +26,7 @@ import (
|
||||
"github.com/ProtonMail/proton-bridge/internal/sentry"
|
||||
"github.com/ProtonMail/proton-bridge/internal/users"
|
||||
"github.com/ProtonMail/proton-bridge/pkg/listener"
|
||||
"github.com/ProtonMail/proton-bridge/pkg/pmapi"
|
||||
)
|
||||
|
||||
// GetBridge returns bridge instance.
|
||||
@ -52,7 +53,6 @@ func (ctx *TestContext) RestartBridge() error {
|
||||
_ = user.GetStore().Close()
|
||||
}
|
||||
|
||||
ctx.bridge.StopWatchers()
|
||||
time.Sleep(50 * time.Millisecond)
|
||||
|
||||
ctx.withBridgeInstance()
|
||||
@ -68,7 +68,7 @@ func newBridgeInstance(
|
||||
settings *fakeSettings,
|
||||
credStore users.CredentialsStorer,
|
||||
eventListener listener.Listener,
|
||||
clientManager users.ClientManager,
|
||||
clientManager pmapi.Manager,
|
||||
) *bridge.Bridge {
|
||||
sentryReporter := sentry.NewReporter("bridge", constants.Version, useragent.New())
|
||||
panicHandler := &panicHandler{t: t}
|
||||
|
||||
Reference in New Issue
Block a user