Browse Source

add label to continue correct loop

Will Norris 12 years ago
parent
commit
ddbb838559
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      tests/integration/users_test.go

+ 2
- 1
tests/integration/users_test.go View File

@ -64,11 +64,12 @@ func TestUsers_Emails(t *testing.T) {
// create random address not currently in user's emails
var email string
EmailLoop:
for {
email = fmt.Sprintf("test-%d@example.com", rand.Int())
for _, e := range emails {
if e.Email != nil && *e.Email == email {
continue
continue EmailLoop
}
}
break


Loading…
Cancel
Save