From 99f710c41d315435f3ba68d44c9e00ccf2861588 Mon Sep 17 00:00:00 2001 From: Reza Mobaraki Date: Sat, 24 Aug 2024 14:29:46 +0330 Subject: [PATCH] Fix(benefactor-kindBoxReqs-test): delete test assertion Addressed #140 Signed-off-by: Reza Mobaraki --- delivery/http_server/end2end/benefactor_kindboxreqs_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/delivery/http_server/end2end/benefactor_kindboxreqs_test.go b/delivery/http_server/end2end/benefactor_kindboxreqs_test.go index 78da216..e8ea81a 100644 --- a/delivery/http_server/end2end/benefactor_kindboxreqs_test.go +++ b/delivery/http_server/end2end/benefactor_kindboxreqs_test.go @@ -11,6 +11,8 @@ import ( "git.gocasts.ir/ebhomengo/niki/entity" benefactoreparam "git.gocasts.ir/ebhomengo/niki/param/benefactor/benefactor" benefactorkindboxreqparam "git.gocasts.ir/ebhomengo/niki/param/benefactor/kind_box_req" + errmsg "git.gocasts.ir/ebhomengo/niki/pkg/err_msg" + httpmsg "git.gocasts.ir/ebhomengo/niki/pkg/http_msg" "github.com/labstack/echo/v4" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/suite" @@ -195,5 +197,8 @@ func (suite *BenefactorKindBoxReqsTestSuite) TestBenefactorKindBoxReqs_Delete_Su KindBoxReqID: suite.kindBoxReqID, }, ) + message, code := httpmsg.Error(err) suite.Require().Error(err) + assert.Equal(suite.T(), http.StatusNotFound, code) + assert.Equal(suite.T(), errmsg.ErrorMsgNotFound, message) }