diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-09-02 04:54:34 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-09-02 04:54:34 +0900 |
| commit | 6f719bc3c19d56279d2d76d3bcf8fb66ace2d2fb (patch) | |
| tree | 6e9e84fd6f382fa823c87a70a0df0284dc127250 /system/xhost_test.go | |
| parent | 1b5d20a39b2c5720d83a8eaf3d2227deb46a7c0d (diff) | |
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 <cat@gensokyo.uk>
Diffstat (limited to 'system/xhost_test.go')
| -rw-r--r-- | system/xhost_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/system/xhost_test.go b/system/xhost_test.go index 4b364432..df0e8166 100644 --- a/system/xhost_test.go +++ b/system/xhost_test.go @@ -8,10 +8,10 @@ func TestChangeHosts(t *testing.T) { testCases := []string{"chronos", "keyring", "cat", "kbd", "yonah"} for _, tc := range testCases { t.Run("append ChangeHosts operation for "+tc, func(t *testing.T) { - sys := New(150) + sys := New(t.Context(), 150) sys.ChangeHosts(tc) (&tcOp{EX11, tc}).test(t, sys.ops, []Op{ - XHost(tc), + XHostOp(tc), }, "ChangeHosts") }) } @@ -26,7 +26,7 @@ func TestXHost_String(t *testing.T) { } for _, tc := range testCases { t.Run(tc.want, func(t *testing.T) { - if got := XHost(tc.username).String(); got != tc.want { + if got := XHostOp(tc.username).String(); got != tc.want { t.Errorf("String() = %v, want %v", got, tc.want) } }) |
