Skip to content

Commit

Permalink
fix: check the proper status code
Browse files Browse the repository at this point in the history
  • Loading branch information
harshkhandeparkar committed Jan 13, 2024
1 parent 59cb8eb commit 9e629b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/student_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ func tStudentBlogLinkExistingUserNotPassed(db *gorm.DB, t *testing.T) {

res := executeRequest(req, db)

expectStatusCodeToBe(t, res, http.StatusOK)
expectStatusCodeToBe(t, res, http.StatusBadRequest)
expectResponseJSONBodyToBe(t, res, utils.HTTPMessage{StatusCode: http.StatusBadRequest, Message: fmt.Sprintf("Student `%s` has not passed end evaluations.", testUsername)})
}

Expand Down

0 comments on commit 9e629b9

Please sign in to comment.