summaryrefslogtreecommitdiffstats
path: root/model/user_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'model/user_test.go')
-rw-r--r--model/user_test.go9
1 files changed, 2 insertions, 7 deletions
diff --git a/model/user_test.go b/model/user_test.go
index 662ae35a6..286c92a66 100644
--- a/model/user_test.go
+++ b/model/user_test.go
@@ -63,11 +63,6 @@ func TestUserIsValid(t *testing.T) {
t.Fatal()
}
- user.TeamId = NewId()
- if err := user.IsValid(); err == nil {
- t.Fatal()
- }
-
user.Username = NewId() + "^hello#"
if err := user.IsValid(); err == nil {
t.Fatal()
@@ -195,11 +190,11 @@ func TestCleanUsername(t *testing.T) {
func TestRoles(t *testing.T) {
- if !IsValidRoles("admin") {
+ if IsValidUserRoles("admin") {
t.Fatal()
}
- if IsValidRoles("junk") {
+ if IsValidUserRoles("junk") {
t.Fatal()
}