]> ruderich.org/simon Gitweb - safcm/safcm.git/blobdiff - cmd/safcm-remote/sync/services_systemd_test.go
tests: go fmt and rewrap
[safcm/safcm.git] / cmd / safcm-remote / sync / services_systemd_test.go
index df226fc85e00fae40dc06834e25deae3a1bce5e5..40dd2e0c4644b32bcf357690ae1e1cee4de95f03 100644 (file)
@@ -508,30 +508,30 @@ LoadError=
 
        for _, tc := range tests {
                t.Run(tc.name, func(t *testing.T) {
-               s, res := prepareSync(tc.req, &testRunner{
-                       t:         t,
-                       expCmds:   tc.expCmds,
-                       resStdout: tc.stdout,
-                       resStderr: tc.stderr,
-                       resError:  tc.errors,
-               })
-
-               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("err = %#v, want %#v",
-                               err, tc.expErr)
-               }
-               dbg := res.Wait()
-
-               if !reflect.DeepEqual(tc.expResp, s.resp) {
-                       t.Errorf("resp: %s",
-                               cmp.Diff(tc.expResp, s.resp))
-               }
-               if !reflect.DeepEqual(tc.expDbg, dbg) {
-                       t.Errorf("dbg: %s",
-                               cmp.Diff(tc.expDbg, dbg))
-               }
+                       s, res := prepareSync(tc.req, &testRunner{
+                               t:         t,
+                               expCmds:   tc.expCmds,
+                               resStdout: tc.stdout,
+                               resStderr: tc.stderr,
+                               resError:  tc.errors,
+                       })
+
+                       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("err = %#v, want %#v",
+                                       err, tc.expErr)
+                       }
+                       dbg := res.Wait()
+
+                       if !reflect.DeepEqual(tc.expResp, s.resp) {
+                               t.Errorf("resp: %s",
+                                       cmp.Diff(tc.expResp, s.resp))
+                       }
+                       if !reflect.DeepEqual(tc.expDbg, dbg) {
+                               t.Errorf("dbg: %s",
+                                       cmp.Diff(tc.expDbg, dbg))
+                       }
                })
        }
 }