Fix broken test due to linter fix

pull/817/head v0.18.1
max furman 2 years ago
parent 62690ab52e
commit 5f4ac5beff

@ -142,7 +142,7 @@ func (e *Error) UnmarshalJSON(data []byte) error {
return err
}
e.Status = er.Status
e.Err = errors.New(er.Message)
e.Err = fmt.Errorf("%s", er.Message)
return nil
}

@ -58,7 +58,7 @@ func TestError_UnmarshalJSON(t *testing.T) {
t.Errorf("Error.UnmarshalJSON() error = %v, wantErr %v", err, tt.wantErr)
}
if !reflect.DeepEqual(tt.expected, e) {
t.Errorf("Error.UnmarshalJSON() wants = %v, got %v", tt.expected, e)
t.Errorf("Error.UnmarshalJSON() wants = %+v, got %+v", tt.expected, e)
}
})
}

Loading…
Cancel
Save