Fix "go get" failure

Move the statusTxtContent to fix this confusing error
when running `go get github.com/rfjakob/gocryptfs/...`:

  $ go get github.com/rfjakob/gocryptfs/...
  # github.com/rfjakob/gocryptfs/tests/example_filesystems
  tests/example_filesystems/example_test_helpers.go:22:16: undefined: statusTxtContent
  tests/example_filesystems/example_test_helpers.go:75:16: undefined: statusTxtContent
This commit is contained in:
Jakob Unterwurzacher 2019-12-24 00:38:40 +01:00
parent 9178aa1534
commit 7dda2363e1
2 changed files with 2 additions and 2 deletions

View File

@ -18,8 +18,6 @@ import (
"github.com/rfjakob/gocryptfs/tests/test_helpers"
)
const statusTxtContent = "It works!\n"
var opensslOpt string
// tmpFsPath contains a private writeable copy of the example_filesystems

View File

@ -9,6 +9,8 @@ import (
"github.com/rfjakob/gocryptfs/tests/test_helpers"
)
const statusTxtContent = "It works!\n"
// checkExampleFS - verify that "dir" contains the expected test files
func checkExampleFS(t *testing.T, dir string, rw bool) {
// Read regular file