Skip to content

Commit

Permalink
appease CI
Browse files Browse the repository at this point in the history
Signed-off-by: Cassandra Coyle <[email protected]>
  • Loading branch information
cicoyle committed Dec 12, 2023
1 parent d50e447 commit 993b20f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions errors/errors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -774,20 +774,19 @@ func TestError_GRPCStatus(t *testing.T) {

func TestErrorBuilder_Build(t *testing.T) {
t.Run("With_ErrorInfo", func(t *testing.T) {
builder := NewBuilder(
built := NewBuilder(
grpcCodes.ResourceExhausted,
http.StatusTeapot,
"Test Msg",
"SOME_ERROR",
).WithErrorInfo("fake", map[string]string{"fake": "test"})

err := builder.Build()
).WithErrorInfo("fake", map[string]string{"fake": "test"}).Build()

assert.NotNil(t, err)
builtErr, ok := built.(Error)
require.True(t, ok)

containsErrorInfo := false

for _, detail := range builder.err.details {
for _, detail := range builtErr.details {
_, isErrInfo := detail.(*errdetails.ErrorInfo)
if isErrInfo {
containsErrorInfo = true
Expand Down

0 comments on commit 993b20f

Please sign in to comment.