aboutsummaryrefslogtreecommitdiffhomepage
path: root/system/xhost_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'system/xhost_test.go')
-rw-r--r--system/xhost_test.go6
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)
}
})