From 6f719bc3c19d56279d2d76d3bcf8fb66ace2d2fb Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 2 Sep 2025 04:54:34 +0900 Subject: system: update doc commands and remove mutex The mutex is not really doing anything, none of these methods make sense when called concurrently anyway. The copylocks analysis is still satisfied by the noCopy struct. Signed-off-by: Ophestra --- system/acl_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'system/acl_test.go') diff --git a/system/acl_test.go b/system/acl_test.go index 886a62e4..6b050bb4 100644 --- a/system/acl_test.go +++ b/system/acl_test.go @@ -18,9 +18,9 @@ func TestUpdatePerm(t *testing.T) { for _, tc := range testCases { t.Run(tc.path+permSubTestSuffix(tc.perms), func(t *testing.T) { - sys := New(150) + sys := New(t.Context(), 150) sys.UpdatePerm(tc.path, tc.perms...) - (&tcOp{Process, tc.path}).test(t, sys.ops, []Op{&ACL{Process, tc.path, tc.perms}}, "UpdatePerm") + (&tcOp{Process, tc.path}).test(t, sys.ops, []Op{&ACLUpdateOp{Process, tc.path, tc.perms}}, "UpdatePerm") }) } } @@ -40,9 +40,9 @@ func TestUpdatePermType(t *testing.T) { for _, tc := range testCases { t.Run(tc.path+"_"+TypeString(tc.et)+permSubTestSuffix(tc.perms), func(t *testing.T) { - sys := New(150) + sys := New(t.Context(), 150) sys.UpdatePermType(tc.et, tc.path, tc.perms...) - tc.test(t, sys.ops, []Op{&ACL{tc.et, tc.path, tc.perms}}, "UpdatePermType") + tc.test(t, sys.ops, []Op{&ACLUpdateOp{tc.et, tc.path, tc.perms}}, "UpdatePermType") }) } } @@ -65,7 +65,7 @@ func TestACLString(t *testing.T) { for _, tc := range testCases { t.Run(tc.want, func(t *testing.T) { - a := &ACL{et: tc.et, perms: tc.perms, path: container.Nonexistent} + a := &ACLUpdateOp{et: tc.et, perms: tc.perms, path: container.Nonexistent} if got := a.String(); got != tc.want { t.Errorf("String() = %v, want %v", got, tc.want) -- cgit v1.3.1