diff options
| author | chrislu <chris.lu@gmail.com> | 2025-08-31 12:58:52 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2025-08-31 12:58:52 -0700 |
| commit | a2378a29dcea338e598689344b139515db7814c4 (patch) | |
| tree | c22ecc530c708ac22df00dfbff2606a79f7e94c7 /test/fuse_integration/posix_extended_test.go | |
| parent | f6cdb887a21589df96817e25d53b7bc53c006e76 (diff) | |
| download | seaweedfs-a2378a29dcea338e598689344b139515db7814c4.tar.xz seaweedfs-a2378a29dcea338e598689344b139515db7814c4.zip | |
fix
Diffstat (limited to 'test/fuse_integration/posix_extended_test.go')
| -rw-r--r-- | test/fuse_integration/posix_extended_test.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/fuse_integration/posix_extended_test.go b/test/fuse_integration/posix_extended_test.go index 76f3f115d..408d93287 100644 --- a/test/fuse_integration/posix_extended_test.go +++ b/test/fuse_integration/posix_extended_test.go @@ -115,10 +115,11 @@ func (s *POSIXExtendedTestSuite) TestExtendedAttributes(t *testing.T) { require.NoError(t, err) require.Greater(t, size, 0) - // Parse the null-separated list - attrList := string(listBuf[:size]) - for name := range attrs { - require.Contains(t, attrList, name) + // Parse the null-separated list and verify attributes + attrList := parseXattrList(listBuf[:size]) + expectedAttrs := []string{"user.attr1", "user.attr2", "user.attr3"} + for _, expectedAttr := range expectedAttrs { + require.Contains(t, attrList, expectedAttr, "Expected attribute should be in the list") } }) |
