]> ruderich.org/simon Gitweb - nsscash/nsscash.git/commitdiff
nsscash: main_test: use existing t variable instead of a.t
authorSimon Ruderich <simon@ruderich.org>
Sun, 15 Dec 2019 14:50:27 +0000 (15:50 +0100)
committerSimon Ruderich <simon@ruderich.org>
Sun, 15 Dec 2019 14:50:27 +0000 (15:50 +0100)
t is set at the beginning of each function.

main_test.go

index 4e9a83bcb8842620627c122743a48bd682377f6b..a5c488ee7faa929fd8fe9ad2e38b79d16af407e4 100644 (file)
@@ -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) {