From 9fd9b365e9f1651a6c5755bad12f1f9d780abcbc Mon Sep 17 00:00:00 2001 From: johnabass Date: Tue, 20 Aug 2024 12:33:13 -0700 Subject: [PATCH] chore: pruned test assertions that no longer apply --- basculehttp/basculecaps/approver_test.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/basculehttp/basculecaps/approver_test.go b/basculehttp/basculecaps/approver_test.go index b698775..f4def5d 100644 --- a/basculehttp/basculecaps/approver_test.go +++ b/basculehttp/basculecaps/approver_test.go @@ -5,7 +5,6 @@ package basculecaps import ( "context" - "errors" "net/http" "net/http/httptest" "strconv" @@ -194,18 +193,6 @@ func (suite *ApproverTestSuite) testApproveUnauthorized() { err := ca.Approve(context.Background(), testCase.request, token) suite.ErrorIs(err, bascule.ErrUnauthorized) - suite.NotEmpty(err.Error()) - - // if the returned error provides a 'StatusCode() int' method, - // it must return http.StatusForbidden. - type statusCoder interface { - StatusCode() int - } - - var sc statusCoder - if errors.As(err, &sc) { - suite.Equal(http.StatusForbidden, sc.StatusCode()) - } }) } }