summaryrefslogtreecommitdiff
path: root/internal/validate/user_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/validate/user_test.go')
-rw-r--r--internal/validate/user_test.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/internal/validate/user_test.go b/internal/validate/user_test.go
index f755ac42a..06c8bb0ac 100644
--- a/internal/validate/user_test.go
+++ b/internal/validate/user_test.go
@@ -26,6 +26,7 @@ import (
"github.com/stretchr/testify/suite"
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
"github.com/superseriousbusiness/gotosocial/internal/validate"
+ "github.com/superseriousbusiness/gotosocial/testrig"
)
func happyUser() *gtsmodel.User {
@@ -54,10 +55,10 @@ func happyUser() *gtsmodel.User {
ConfirmedAt: time.Now(),
ConfirmationSentAt: time.Time{},
UnconfirmedEmail: "",
- Moderator: false,
- Admin: false,
- Disabled: false,
- Approved: true,
+ Moderator: testrig.FalseBool(),
+ Admin: testrig.FalseBool(),
+ Disabled: testrig.FalseBool(),
+ Approved: testrig.TrueBool(),
}
}