Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Alessandro Manno <alessandro.manno@facile.it>
  • Loading branch information
alexmanno committed Mar 11, 2022
1 parent c0f2d0e commit 30ed65f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/errors/errors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ func (suite *ErrorTestSuite) TestErrors() {
suite.Equal(`{"errors":[{"code":"UNKNOWN","message":"internal server error"}]}`, NewErrs(err).Error())

err = New(nil).WithCode(NotFoundCode).WithMessage("manifest unknown")
suite.Equal(`{"errors":[{"code":"UNKNOWN","message":"manifest unknown"}]}`, NewErrs(err).Error())
suite.Equal(`{"errors":[{"code":"MANIFEST_UNKNOWN","message":"manifest unknown"}]}`, NewErrs(err).Error())
}

func TestErrorTestSuite(t *testing.T) {
Expand Down

0 comments on commit 30ed65f

Please sign in to comment.