test: keep deleted address in test suite
This commit is contained in:
parent
d919c0accf
commit
65d8fbbf31
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue