Skip to content

Commit

Permalink
chore: pruned test assertions that no longer apply
Browse files Browse the repository at this point in the history
  • Loading branch information
johnabass committed Aug 20, 2024
1 parent 2307f48 commit 9fd9b36
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions basculehttp/basculecaps/approver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ package basculecaps

import (
"context"
"errors"
"net/http"
"net/http/httptest"
"strconv"
Expand Down Expand Up @@ -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())
}
})
}
}
Expand Down

0 comments on commit 9fd9b36

Please sign in to comment.