]> ruderich.org/simon Gitweb - nsscash/nsscash.git/blobdiff - file_test.go
README: rename to README.adoc
[nsscash/nsscash.git] / file_test.go
index 59cb169f8abf66f51cbb7b30a178d6bfbe14a096..72fa58c5f9ea6178afe43f1e421d506ccb3aede7 100644 (file)
@@ -27,6 +27,7 @@ func TestDeployFile(t *testing.T) {
 
        // Suppress log messages
        log.SetOutput(ioutil.Discard)
+       defer log.SetOutput(os.Stderr)
 
        // Setup & cleanup
        f, err := os.Create(deploy)
@@ -45,7 +46,7 @@ func TestDeployFile(t *testing.T) {
        }{
                {
                        0644,
-                       0644,
+                       0444,
                },
                {
                        0400,
@@ -53,15 +54,15 @@ func TestDeployFile(t *testing.T) {
                },
                {
                        0600,
-                       0600,
+                       0400,
                },
                {
                        0777,
-                       0777,
+                       0555,
                },
                {
                        0666,
-                       0666,
+                       0444,
                },
                {
                        0000,