From: Simon Ruderich Date: Sun, 15 Dec 2019 14:50:27 +0000 (+0100) Subject: nsscash: main_test: use existing t variable instead of a.t X-Git-Tag: 0.1~4 X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=886b911524a2f14bd7fc76e5a7478e0cfb2fc14d;p=nsscash%2Fnsscash.git nsscash: main_test: use existing t variable instead of a.t t is set at the beginning of each function. --- diff --git a/main_test.go b/main_test.go index 4e9a83b..a5c488e 100644 --- a/main_test.go +++ b/main_test.go @@ -327,7 +327,7 @@ func fetchPasswd404(a args) { "status code 404") mustNotExist(t, statePath, plainPath, groupPath) - mustBeOld(a.t, passwdPath) + mustBeOld(t, passwdPath) } func fetchPasswdUnexpected304(a args) { @@ -345,7 +345,7 @@ func fetchPasswdUnexpected304(a args) { "status code 304 but did not send If-Modified-Since") mustNotExist(t, statePath, plainPath, groupPath) - mustBeOld(a.t, passwdPath) + mustBeOld(t, passwdPath) } func fetchPasswdEmpty(a args) {