mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 04:36:43 +00:00
GODT-1815: Start without internet, load users later
This commit is contained in:
@ -4,6 +4,7 @@ import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/ProtonMail/gluon/rfc822"
|
||||
"github.com/bradenaw/juniper/xslices"
|
||||
@ -182,6 +183,14 @@ func (s *scenario) userIsListedAndConnected(username string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *scenario) userIsEventuallyListedAndConnected(username string) error {
|
||||
return eventually(
|
||||
func() error { return s.userIsListedAndConnected(username) },
|
||||
5*time.Second,
|
||||
100*time.Millisecond,
|
||||
)
|
||||
}
|
||||
|
||||
func (s *scenario) userIsListedButNotConnected(username string) error {
|
||||
user, err := s.t.bridge.GetUserInfo(s.t.getUserID(username))
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user