Skip to content

Commit cd8bf28

Browse files
committed
db(users): fix test
Signed-off-by: E99p1ant <i@github.red>
1 parent 09a5323 commit cd8bf28

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/db/users_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ func testUsersGetByID(t *testing.T, ctx context.Context, db *users) {
111111
Model: gorm.Model{
112112
ID: 1,
113113
},
114+
UID: got.UID,
114115
Name: "E99p1ant",
115116
Password: "super_secret",
116117
Email: "i@github.red",
@@ -153,6 +154,7 @@ func testUsersGetByEmail(t *testing.T, ctx context.Context, db *users) {
153154
Model: gorm.Model{
154155
ID: 1,
155156
},
157+
UID: got.UID,
156158
Name: "E99p1ant",
157159
Password: "super_secret",
158160
Email: "i@github.red",
@@ -195,6 +197,7 @@ func testUsersGetByDomain(t *testing.T, ctx context.Context, db *users) {
195197
Model: gorm.Model{
196198
ID: 1,
197199
},
200+
UID: got.UID,
198201
Name: "E99p1ant",
199202
Password: "super_secret",
200203
Email: "i@github.red",
@@ -246,6 +249,7 @@ func testUsersUpdate(t *testing.T, ctx context.Context, db *users) {
246249
Model: gorm.Model{
247250
ID: 1,
248251
},
252+
UID: got.UID,
249253
Name: "e99",
250254
Password: "super_secret",
251255
Email: "i@github.red",
@@ -309,6 +313,7 @@ func testUsersAuthenticate(t *testing.T, ctx context.Context, db *users) {
309313
Model: gorm.Model{
310314
ID: 1,
311315
},
316+
UID: got.UID,
312317
Name: "E99p1ant",
313318
Password: "super_secret",
314319
Email: "i@github.red",

0 commit comments

Comments
 (0)