From: Simon Ruderich Date: Sun, 9 May 2021 10:13:37 +0000 (+0200) Subject: sync: tests: check return value of setDefaults() X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=116e5ebec76bbdf4f70ef4b5fc3ebb55cafee719;p=safcm%2Fsafcm.git sync: tests: check return value of setDefaults() --- diff --git a/cmd/safcm-remote/sync/files_test.go b/cmd/safcm-remote/sync/files_test.go index 3cf7e04..5787404 100644 --- a/cmd/safcm-remote/sync/files_test.go +++ b/cmd/safcm-remote/sync/files_test.go @@ -850,7 +850,10 @@ func TestSyncFiles(t *testing.T) { s, res := prepareSync(tc.req, &testRunner{ t: t, }) - s.setDefaults() + err = s.setDefaults() + if err != nil { + t.Fatal(err) + } err = s.syncFiles() testutil.AssertErrorEqual(t, "err", err, tc.expErr) @@ -2390,7 +2393,10 @@ file s, res := prepareSync(tc.req, &testRunner{ t: t, }) - s.setDefaults() + err = s.setDefaults() + if err != nil { + t.Fatal(err) + } // Deterministic temporary symlink names rand.Seed(0)