err := s.syncServicesSystemd()
// Ugly but the simplest way to compare errors (including nil)
if fmt.Sprintf("%s", err) != fmt.Sprintf("%s", tc.expErr) {
err := s.syncServicesSystemd()
// Ugly but the simplest way to compare errors (including nil)
if fmt.Sprintf("%s", err) != fmt.Sprintf("%s", tc.expErr) {
- t.Errorf("%s: err = %#v, want %#v",
- tc.name, err, tc.expErr)
+ t.Errorf("err = %#v, want %#v",
+ err, tc.expErr)
cmp.Diff(tc.expResp, s.resp))
}
if !reflect.DeepEqual(tc.expDbg, dbg) {
cmp.Diff(tc.expResp, s.resp))
}
if !reflect.DeepEqual(tc.expDbg, dbg) {