mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 04:36:43 +00:00
test(GODT-2871): tests for new telemetry logic.
This commit is contained in:
@ -320,11 +320,13 @@ func (s *scenario) bridgeTelemetryFeatureDisabled() error {
|
||||
}
|
||||
|
||||
func (s *scenario) checkTelemetry(expect bool) error {
|
||||
res := s.t.bridge.IsTelemetryAvailable(context.Background())
|
||||
if res != expect {
|
||||
return fmt.Errorf("expected telemetry feature %v but got %v ", expect, res)
|
||||
}
|
||||
return nil
|
||||
return eventually(func() error {
|
||||
res := s.t.bridge.IsTelemetryAvailable(context.Background())
|
||||
if res != expect {
|
||||
return fmt.Errorf("expected telemetry feature %v but got %v ", expect, res)
|
||||
}
|
||||
return nil
|
||||
})
|
||||
}
|
||||
|
||||
func (s *scenario) theUserHidesAllMail() error {
|
||||
|
||||
Reference in New Issue
Block a user