GODT-1913: pass reporter to gluon, limit restarts, add crash handlers.
This commit is contained in:
@ -27,6 +27,7 @@ import (
|
||||
"github.com/Masterminds/semver/v3"
|
||||
"github.com/ProtonMail/proton-bridge/v2/internal/events"
|
||||
"github.com/ProtonMail/proton-bridge/v2/internal/vault"
|
||||
"github.com/golang/mock/gomock"
|
||||
)
|
||||
|
||||
func (s *scenario) bridgeStarts() error {
|
||||
@ -263,6 +264,16 @@ func (s *scenario) bridgeSendsAForcedUpdateEvent() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *scenario) bridgeReportsMessage(message string) error {
|
||||
s.t.reporter.removeMatchingRecords(
|
||||
gomock.Eq(false),
|
||||
gomock.Eq(message),
|
||||
gomock.Any(),
|
||||
1,
|
||||
)
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *scenario) theUserHidesAllMail() error {
|
||||
return s.t.bridge.SetShowAllMail(false)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user