aboutsummaryrefslogtreecommitdiffhomepage
path: root/system/dbus/dbus_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-11-03 01:49:27 +0900
committerOphestra <cat@gensokyo.uk>2025-11-03 01:49:27 +0900
commitae66b3d2fb2f1f65f6ca8932e8044114e609d0b4 (patch)
tree3079bfec79b4ac5aada225bfa0da4e631d128741 /system/dbus/dbus_test.go
parent149bc3671a499cce0b5719d7396355fabfa7fc2a (diff)
message: rename NewMsg to New
Should have done this when relocating this from container. Now is a good time to rename it before v0.3.x. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'system/dbus/dbus_test.go')
-rw-r--r--system/dbus/dbus_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/system/dbus/dbus_test.go b/system/dbus/dbus_test.go
index abe324ba..85aae5bf 100644
--- a/system/dbus/dbus_test.go
+++ b/system/dbus/dbus_test.go
@@ -93,9 +93,9 @@ func testProxyFinaliseStartWaitCloseString(t *testing.T, useSandbox bool) {
t.Run("invalid start", func(t *testing.T) {
if !useSandbox {
- p = dbus.NewDirect(t.Context(), message.NewMsg(nil), nil, nil)
+ p = dbus.NewDirect(t.Context(), message.New(nil), nil, nil)
} else {
- p = dbus.New(t.Context(), message.NewMsg(nil), nil, nil)
+ p = dbus.New(t.Context(), message.New(nil), nil, nil)
}
if err := p.Start(); !errors.Is(err, syscall.ENOTRECOVERABLE) {
@@ -125,9 +125,9 @@ func testProxyFinaliseStartWaitCloseString(t *testing.T, useSandbox bool) {
defer cancel()
output := new(strings.Builder)
if !useSandbox {
- p = dbus.NewDirect(ctx, message.NewMsg(nil), final, output)
+ p = dbus.NewDirect(ctx, message.New(nil), final, output)
} else {
- p = dbus.New(ctx, message.NewMsg(nil), final, output)
+ p = dbus.New(ctx, message.New(nil), final, output)
}
{ // check invalid wait behaviour