moved db indices to uint
This commit is contained in:
@@ -51,7 +51,7 @@ func TestAuthMiddleware(t *testing.T) {
|
||||
setupAuth func(r *http.Request)
|
||||
expectedStatus int
|
||||
expectNewCookie bool
|
||||
expectedUserID int64
|
||||
expectedUserID uint
|
||||
}{
|
||||
{
|
||||
name: "Valid Token",
|
||||
@@ -169,7 +169,7 @@ func TestAuthMiddleware(t *testing.T) {
|
||||
assert.Equal(t, tt.expectedStatus, w.Code)
|
||||
|
||||
if tt.expectedStatus == http.StatusOK {
|
||||
var response map[string]int64
|
||||
var response map[string]uint
|
||||
err := json.Unmarshal(w.Body.Bytes(), &response)
|
||||
assert.NoError(t, err)
|
||||
assert.Equal(t, tt.expectedUserID, response["user_id"])
|
||||
|
||||
Reference in New Issue
Block a user