Skip to content

Commit

Permalink
test: use 0600 for WriteFile permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
talal committed Sep 21, 2020
1 parent a17cfc4 commit 37ca33d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ var _ = Describe("Controller", func() {
fixturePath, err := filepath.Abs("fixtures/metrics.prom")
Expect(err).ToNot(HaveOccurred())
actualPath := fixturePath + ".actual"
err = ioutil.WriteFile(actualPath, responseBytes, 0644)
err = ioutil.WriteFile(actualPath, responseBytes, 0600)
Expect(err).ToNot(HaveOccurred())

cmd := exec.Command("diff", "-u", fixturePath, actualPath)
Expand Down

0 comments on commit 37ca33d

Please sign in to comment.