diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-03-27 17:30:40 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-03-27 18:22:07 +0900 |
| commit | 78aaae7ee0e156239e6bb90d28c43bf51ab24da2 (patch) | |
| tree | c11ca971a42d568f566f6d2137f0b4c9273bd61b /dbus | |
| parent | 5c82f1ed3eb21d6a6999748ca19d26cefaf7598c (diff) | |
helper/args: copy args on wt creation
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'dbus')
| -rw-r--r-- | dbus/dbus_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dbus/dbus_test.go b/dbus/dbus_test.go index 740ab522..0917d9d1 100644 --- a/dbus/dbus_test.go +++ b/dbus/dbus_test.go @@ -8,6 +8,7 @@ import ( "os" "os/exec" "strings" + "syscall" "testing" "time" @@ -71,7 +72,7 @@ func TestProxy_Seal(t *testing.T) { for id, tc := range testCasePairs() { t.Run("create seal for "+id, func(t *testing.T) { p := dbus.New(tc[0].bus, tc[1].bus) - if err := p.Seal(tc[0].c, tc[1].c); (errors.Is(err, helper.ErrContainsNull)) != tc[0].wantErr { + if err := p.Seal(tc[0].c, tc[1].c); (errors.Is(err, syscall.EINVAL)) != tc[0].wantErr { t.Errorf("Seal(%p, %p) error = %v, wantErr %v", tc[0].c, tc[1].c, err, tc[0].wantErr) |
