forked from TrueCloudLab/certificates
Fix broken test due to linter fix
This commit is contained in:
parent
62690ab52e
commit
5f4ac5beff
2 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue