Skip to content

Commit

Permalink
resolve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
arvindbr8 committed Jan 31, 2024
1 parent 81957e0 commit 5ef777c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion status/status_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -419,8 +419,11 @@ func (s) TestStatus_ErrorDetails_Fail(t *testing.T) {
}
for _, tc := range tests {
details := tc.s.Details()
if len(details) != len(tc.want) {
t.Fatalf("len(s.Details()) = %v, want = %v.", len(details), len(tc.want))
}
for i, d := range details {
// s.Deatils can either contain an error or a proto message. We
// s.Details can either contain an error or a proto message. We
// want to do a compare the proto message for an Equal match, and
// for errors only check for presence.
if _, ok := d.(error); ok {
Expand Down

0 comments on commit 5ef777c

Please # to comment.