Skip to content

Commit

Permalink
fix: cr
Browse files Browse the repository at this point in the history
Signed-off-by: francois  samin <[email protected]>
  • Loading branch information
fsamin committed May 21, 2021
1 parent db6324c commit ee1d0de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine/api/auth_consumer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ func Test_postConsumerRegenByUserHandler(t *testing.T) {
})
rec = httptest.NewRecorder()
api.Router.Mux.ServeHTTP(rec, req)
require.Equal(t, http.StatusBadRequest, rec.Code)
require.Equal(t, http.StatusForbidden, rec.Code)

// the new signing token from the builtin consumer should be fine
signinToken2 := response.Token
Expand Down Expand Up @@ -286,7 +286,7 @@ func Test_postConsumerRegenByUserHandler(t *testing.T) {
})
rec = httptest.NewRecorder()
api.Router.Mux.ServeHTTP(rec, req)
require.Equal(t, http.StatusBadRequest, rec.Code)
require.Equal(t, http.StatusForbidden, rec.Code)
}

func Test_getSessionsByUserHandler(t *testing.T) {
Expand Down

0 comments on commit ee1d0de

Please sign in to comment.