From ddbb83855915015361dd65f1576330fbf350efb3 Mon Sep 17 00:00:00 2001 From: Will Norris Date: Wed, 9 Apr 2014 17:20:09 -0700 Subject: [PATCH] add label to continue correct loop --- tests/integration/users_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/integration/users_test.go b/tests/integration/users_test.go index acb5c7f..c778e20 100644 --- a/tests/integration/users_test.go +++ b/tests/integration/users_test.go @@ -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