From 34d56294a240a38722d2d752c63ce087de625080 Mon Sep 17 00:00:00 2001 From: =Corey Hulen Date: Sun, 12 Jul 2015 18:19:03 -0800 Subject: Patching remainder of the sql stmts to work with postgres --- api/user_test.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'api') diff --git a/api/user_test.go b/api/user_test.go index 6e99ab930..f2b69aba4 100644 --- a/api/user_test.go +++ b/api/user_test.go @@ -54,6 +54,13 @@ func TestCreateUser(t *testing.T) { } } + ruser.Data.(*model.User).Email = "test2@nowhere.com" + if _, err := Client.CreateUser(ruser.Data.(*model.User), ""); err != nil { + if err.Message != "An account with that username already exists." { + t.Fatal(err) + } + } + ruser.Data.(*model.User).Email = "" if _, err := Client.CreateUser(ruser.Data.(*model.User), ""); err != nil { if err.Message != "Invalid email" { -- cgit v1.2.3-1-g7c22