aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJakob Unterwurzacher2019-12-24 00:38:40 +0100
committerJakob Unterwurzacher2019-12-24 00:38:40 +0100
commit7dda2363e1f8d30d5ebce5b6279452a2cf1bb77a (patch)
tree7bdeefdc1a3e0bcc81a1cd3ad771a87ee61cfe9d /tests
parent9178aa153442a94ca119e85c26e37b252702a8d9 (diff)
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
Diffstat (limited to 'tests')
-rw-r--r--tests/example_filesystems/example_filesystems_test.go2
-rw-r--r--tests/example_filesystems/example_test_helpers.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/example_filesystems/example_filesystems_test.go b/tests/example_filesystems/example_filesystems_test.go
index b1e0fda..08cd958 100644
--- a/tests/example_filesystems/example_filesystems_test.go
+++ b/tests/example_filesystems/example_filesystems_test.go
@@ -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
diff --git a/tests/example_filesystems/example_test_helpers.go b/tests/example_filesystems/example_test_helpers.go
index 672b668..e39f8d6 100644
--- a/tests/example_filesystems/example_test_helpers.go
+++ b/tests/example_filesystems/example_test_helpers.go
@@ -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