]> ruderich.org/simon Gitweb - nsscash/nsscash.git/blobdiff - main_test.go
nsscash: main_test: add missing check for statePath
[nsscash/nsscash.git] / main_test.go
index 4e9a83bcb8842620627c122743a48bd682377f6b..145abe91dfe5b8a0c53989e90133856feeeea528 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) {
@@ -715,6 +715,7 @@ func fetchStateCannotRead(a args) {
                statePath+": permission denied")
 
        mustNotExist(t, passwdPath, plainPath, groupPath)
+       mustBeOld(t, statePath)
 }
 
 func fetchStateInvalid(a args) {