aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2025-08-31 13:28:07 -0700
committerchrislu <chris.lu@gmail.com>2025-08-31 13:28:07 -0700
commit2915be4fa30947c548ab40a364bd47fe4d477310 (patch)
treeaa21bc73ecfd8ba3c88d9570d166ec5a846bf483
parent705c965c5c8e67cf9fa10e34a26e3282227dd6e8 (diff)
downloadseaweedfs-2915be4fa30947c548ab40a364bd47fe4d477310.tar.xz
seaweedfs-2915be4fa30947c548ab40a364bd47fe4d477310.zip
Update posix_external_test.go
-rw-r--r--test/fuse_integration/posix_external_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/fuse_integration/posix_external_test.go b/test/fuse_integration/posix_external_test.go
index 31d1d1ad6..f1c2a1021 100644
--- a/test/fuse_integration/posix_external_test.go
+++ b/test/fuse_integration/posix_external_test.go
@@ -479,9 +479,8 @@ func (s *ExternalPOSIXTestSuite) testEdgeCases(t *testing.T, mountPoint string)
require.Error(t, err)
// Verify the error is specifically about the target being a directory
var pathErr *os.PathError
- if require.ErrorAs(t, err, &pathErr) {
- require.Equal(t, syscall.EISDIR, pathErr.Err)
- }
+ require.ErrorAs(t, err, &pathErr)
+ require.Equal(t, syscall.EISDIR, pathErr.Err)
})
t.Run("VeryLongFileName", func(t *testing.T) {