aboutsummaryrefslogtreecommitdiff
path: root/test/fuse_integration/posix_extended_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/fuse_integration/posix_extended_test.go')
-rw-r--r--test/fuse_integration/posix_extended_test.go9
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")
}
})