aboutsummaryrefslogtreecommitdiff
path: root/tests/reverse/exclude_test.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2020-08-15 15:39:08 +0200
committerJakob Unterwurzacher2020-08-15 15:39:08 +0200
commitf270135c1614843f43a9df0e68b6e3fa556b6774 (patch)
tree2330d738e7a4eb78e8548579289fca0ce695bcb8 /tests/reverse/exclude_test.go
parent1ea1b179c23fe37c2f2da24e70e18dfa4ca1feff (diff)
test_helper: VerifyExistence: don't panic
Instead bubble up the error to the testing object.
Diffstat (limited to 'tests/reverse/exclude_test.go')
-rw-r--r--tests/reverse/exclude_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/reverse/exclude_test.go b/tests/reverse/exclude_test.go
index 110a407..b5d0f5b 100644
--- a/tests/reverse/exclude_test.go
+++ b/tests/reverse/exclude_test.go
@@ -118,7 +118,7 @@ func testExclude(t *testing.T, flag string) {
cExclude := encryptExcludeTestPaths(t, sock, pExclude)
// Check that "excluded" paths are not there and "ok" paths are there
for _, v := range cExclude {
- if test_helpers.VerifyExistence(mnt + "/" + v) {
+ if test_helpers.VerifyExistence(t, mnt+"/"+v) {
t.Errorf("File %q is visible, but should be excluded", v)
}
if nametransform.IsLongContent(filepath.Base(v)) {
@@ -126,7 +126,7 @@ func testExclude(t *testing.T, flag string) {
}
}
for _, v := range cOk {
- if !test_helpers.VerifyExistence(mnt + "/" + v) {
+ if !test_helpers.VerifyExistence(t, mnt+"/"+v) {
t.Errorf("File %q is hidden, but should be visible", v)
}
}