aboutsummaryrefslogtreecommitdiffhomepage
path: root/dbus/dbus_test.go
diff options
context:
space:
mode:
authorOphestra Umiker <cat@ophivana.moe>2024-10-12 00:53:08 +0900
committerOphestra Umiker <cat@ophivana.moe>2024-10-12 00:53:08 +0900
commit0f421644bec4cf94737b5da1c8beeb2c99b9f158 (patch)
treeea54fa7eb3de856b48938bb60d32eaf603831ea0 /dbus/dbus_test.go
parent662f2a9d2cea3f462cf5b508b3719d4d7a722146 (diff)
dbus: improve unsealed behaviour coverage
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'dbus/dbus_test.go')
-rw-r--r--dbus/dbus_test.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/dbus/dbus_test.go b/dbus/dbus_test.go
index b1d46690..8397aff4 100644
--- a/dbus/dbus_test.go
+++ b/dbus/dbus_test.go
@@ -137,6 +137,15 @@ func testProxyStartWaitCloseString(t *testing.T, sandbox bool) {
}
})
+ t.Run("unsealed start of "+id, func(t *testing.T) {
+ want := "proxy not sealed"
+ if err := p.Start(nil, nil, sandbox); err == nil || err.Error() != want {
+ t.Errorf("Start() error = %v, wantErr %q",
+ err, errors.New(want))
+ return
+ }
+ })
+
t.Run("unsealed wait of "+id, func(t *testing.T) {
wantErr := "proxy not started"
if err := p.Wait(); err == nil || err.Error() != wantErr {