Skip to content
Permalink
Browse files

cmd/upspinfs: fix error messages in TestSymlink

The two final error messages in TestSymlink look reversed to me.

Change-Id: I16da4fc2e9eb303f57abc5e5458709561e405b1f
Reviewed-on: https://upspin-review.googlesource.com/c/upspin/+/19300
Reviewed-by: Andrew Gerrand <adg@golang.org>
Reviewed-by: David Presotto <presotto@gmail.com>
  • Loading branch information...
n2vi committed Apr 25, 2019
1 parent e10ca8f commit 8fa1bb72e8fd0d99af1298eddeaaf5ba9ed5388a
Showing with 2 additions and 2 deletions.
  1. +2 −2 cmd/upspinfs/upspinfs_test.go
@@ -444,11 +444,11 @@ func TestSymlink(t *testing.T) {

// Test a path that leaves Upspin. It should fail.
if err := os.Symlink("../../../../quux", filepath.Join(subdir, "wontwork")); err == nil {
fatal(t, err)
t.Fatalf("symlink out of upspin worked but should not have")
}

if err := os.RemoveAll(testDir); err != nil {
t.Fatalf("symlink out of upspin worked but should not have")
fatal(t, err)
}
}

0 comments on commit 8fa1bb7

Please sign in to comment.
You can’t perform that action at this time.