Skip to content

Commit 4ceb6db

Browse files
committed
Adding possible test error cause comment
1 parent 9edc8d0 commit 4ceb6db

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

server/test/update_user_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ func updateUserTest(t *testing.T, s TestSetup) {
2424
})
2525

2626
user := *signupRes.User
27+
//! - Found out by testing
28+
//! that the 'supplier' role was being accepted by the server
29+
//! even though that it doesn't exist in the database.
30+
//! (checked it by doing fmt.Println() on role envs)
31+
//! But I'm not removing it as there is maybe a reason for it to be be here...
32+
//! - Appart from that, by removing it test returns 'unauthorized' successfully
2733
adminRole := "supplier"
2834
userRole := "user"
2935
newRoles := []*string{&adminRole, &userRole}

0 commit comments

Comments
 (0)