Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-tron committed Jul 29, 2023
1 parent afd9c8f commit 2e8fe65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,13 @@ func TestHandler_GetAccounts(t *testing.T) {
},
}
accountRes, err := h.GetAccounts(context.Background(), tt.params)
require.Nil(t, err)
if len(tt.wantBadRequestError) > 0 {
badRequest, ok := err.(*oas.ErrorStatusCode)
require.True(t, ok)
require.Equal(t, tt.wantBadRequestError, badRequest.Response.Error)
return
}
require.Nil(t, err)

statuses := map[string]string{}
names := map[string]string{}
Expand Down

0 comments on commit 2e8fe65

Please sign in to comment.