From 4ceb6db4ba4920514f09866fe881ce8021ec1e2e Mon Sep 17 00:00:00 2001 From: Vicg853 Date: Thu, 12 May 2022 16:40:49 -0300 Subject: [PATCH] Adding possible test error cause comment --- server/test/update_user_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/test/update_user_test.go b/server/test/update_user_test.go index d072a27..d1f55de 100644 --- a/server/test/update_user_test.go +++ b/server/test/update_user_test.go @@ -24,6 +24,12 @@ func updateUserTest(t *testing.T, s TestSetup) { }) user := *signupRes.User + //! - Found out by testing + //! that the 'supplier' role was being accepted by the server + //! even though that it doesn't exist in the database. + //! (checked it by doing fmt.Println() on role envs) + //! But I'm not removing it as there is maybe a reason for it to be be here... + //! - Appart from that, by removing it test returns 'unauthorized' successfully adminRole := "supplier" userRole := "user" newRoles := []*string{&adminRole, &userRole}