diff options
Diffstat (limited to 'api/user_test.go')
-rw-r--r-- | api/user_test.go | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/api/user_test.go b/api/user_test.go index a7d6224ea..5a398a716 100644 --- a/api/user_test.go +++ b/api/user_test.go @@ -83,32 +83,6 @@ func TestCreateUser(t *testing.T) { } } -func TestCheckUserDomain(t *testing.T) { - th := Setup().InitBasic() - user := th.BasicUser - - cases := []struct { - domains string - matched bool - }{ - {"simulator.amazonses.com", true}, - {"gmail.com", false}, - {"", true}, - {"gmail.com simulator.amazonses.com", true}, - } - for _, c := range cases { - matched := CheckUserDomain(user, c.domains) - if matched != c.matched { - if c.matched { - t.Logf("'%v' should have matched '%v'", user.Email, c.domains) - } else { - t.Logf("'%v' should not have matched '%v'", user.Email, c.domains) - } - t.FailNow() - } - } -} - func TestLogin(t *testing.T) { th := Setup().InitBasic() Client := th.BasicClient @@ -1356,6 +1330,7 @@ func TestResetPassword(t *testing.T) { } if _, err := Client.ResetPassword(recovery.Code, "newpwd1"); err != nil { + t.Log(recovery.Code) t.Fatal(err) } |