forked from Silverfish/proton-bridge
test: keep deleted address in test suite
This commit is contained in:
@ -88,7 +88,6 @@ func (s *scenario) theAccountHasAdditionalAddressWithoutKeys(username, address s
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *scenario) theAccountNoLongerHasAdditionalAddress(username, address string) error {
|
func (s *scenario) theAccountNoLongerHasAdditionalAddress(username, address string) error {
|
||||||
userID := s.t.getUserByName(username).getUserID()
|
|
||||||
addrID := s.t.getUserByName(username).getAddrID(address)
|
addrID := s.t.getUserByName(username).getAddrID(address)
|
||||||
|
|
||||||
if err := s.t.withClient(context.Background(), username, func(ctx context.Context, c *proton.Client) error {
|
if err := s.t.withClient(context.Background(), username, func(ctx context.Context, c *proton.Client) error {
|
||||||
@ -101,8 +100,6 @@ func (s *scenario) theAccountNoLongerHasAdditionalAddress(username, address stri
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
s.t.getUserByID(userID).remAddress(addrID)
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user