From 9e629b9fe2c5b2e0b97c4dd828d80454e8c2903e Mon Sep 17 00:00:00 2001 From: Harsh Khandeparkar Date: Sat, 13 Jan 2024 15:27:00 +0530 Subject: [PATCH] fix: check the proper status code --- tests/student_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/student_test.go b/tests/student_test.go index f266935..5173358 100644 --- a/tests/student_test.go +++ b/tests/student_test.go @@ -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)}) }