diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-12-07 00:31:04 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-12-07 00:43:50 +0900 |
| commit | d837628b4ca58b4de85c27dbf815decadd4a0903 (patch) | |
| tree | b1a52da7dd65a583e93969117e3fc16fdfba8109 /internal/system/dispatcher_test.go | |
| parent | 3cb58b4b72ddb9ae1e354b954ae15230c9a49d6d (diff) | |
internal/system: remove ineffectual join reverting wayland
Removing the pathname socket used to be handled separately, now it is done during the Close call.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/system/dispatcher_test.go')
| -rw-r--r-- | internal/system/dispatcher_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/system/dispatcher_test.go b/internal/system/dispatcher_test.go index 2704bca0..85bd45bf 100644 --- a/internal/system/dispatcher_test.go +++ b/internal/system/dispatcher_test.go @@ -1,6 +1,7 @@ package system import ( + "io" "log" "os" "reflect" @@ -13,7 +14,6 @@ import ( "hakurei.app/hst" "hakurei.app/internal/acl" "hakurei.app/internal/dbus" - "hakurei.app/internal/wayland" "hakurei.app/internal/xcb" ) @@ -270,9 +270,9 @@ func (k *kstub) aclUpdate(name string, uid int, perms ...acl.Perm) error { stub.CheckArgReflect(k.Stub, "perms", perms, 2)) } -func (k *kstub) waylandNew(displayPath, bindPath *check.Absolute, appID, instanceID string) (*wayland.SecurityContext, error) { +func (k *kstub) waylandNew(displayPath, bindPath *check.Absolute, appID, instanceID string) (io.Closer, error) { k.Helper() - return nil, k.Expects("waylandNew").Error( + return io.NopCloser(nil), k.Expects("waylandNew").Error( stub.CheckArgReflect(k.Stub, "displayPath", displayPath, 0), stub.CheckArgReflect(k.Stub, "bindPath", bindPath, 1), stub.CheckArg(k.Stub, "appID", appID, 2), |
