Skip to content
This repository was archived by the owner on Nov 7, 2019. It is now read-only.

Commit eec6ae8

Browse files
committed
fix tests
1 parent f43b311 commit eec6ae8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

user/user_types_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ func TestUserTypeMarshalJSON(t *testing.T) {
1212
err error
1313
}{
1414
{UserTypeUser, "\"user\"", nil},
15-
{UserTypeOrganization, "\"community\"", nil},
15+
{UserTypeCommunity, "\"community\"", nil},
1616
}
1717

1818
for i, c := range cases {
@@ -33,7 +33,7 @@ func TestUserTypeUnmarshalJSON(t *testing.T) {
3333
err error
3434
}{
3535
{[]byte("[\"user\"]"), UserTypeUser, nil},
36-
{[]byte("[\"community\"]"), UserTypeOrganization, nil},
36+
{[]byte("[\"community\"]"), UserTypeCommunity, nil},
3737
}
3838

3939
for i, c := range cases {

user/users_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package user
33
import "testing"
44

55
func TestReadUsers(t *testing.T) {
6-
users, err := ReadUsers(testDB, 20, 0)
6+
users, err := ReadUsers(testDB, UserTypeNone, 20, 0)
77
if err != nil {
88
t.Error(err.Error())
99
return
@@ -12,7 +12,7 @@ func TestReadUsers(t *testing.T) {
1212
t.Error("expected more than one user")
1313
}
1414

15-
users, err = ReadUsers(testDB, 20, 100000)
15+
users, err = ReadUsers(testDB, UserTypeNone, 20, 100000)
1616
if err != nil {
1717
t.Error(err.Error())
1818
return

0 commit comments

Comments
 (0)