aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/pipewire/pipewire_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-12-14 09:41:28 +0900
committerOphestra <cat@gensokyo.uk>2025-12-14 09:41:28 +0900
commit178c8bc28bc7ff5efc63415796c0c79e649b3cd7 (patch)
tree40c114cadc0f4d77ecd607ca9e7d03880f02a419 /internal/pipewire/pipewire_test.go
parent30dcab07340610bfd6d015e10022b9ca2a27bb51 (diff)
internal/pipewire: handle SecurityContext::Create error
This method can result in an error targeting it, so it is handled here. This change also causes a call to Create to also Core::Sync, as it should have done. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pipewire/pipewire_test.go')
-rw-r--r--internal/pipewire/pipewire_test.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/internal/pipewire/pipewire_test.go b/internal/pipewire/pipewire_test.go
index 1ba72857..0b65b86b 100644
--- a/internal/pipewire/pipewire_test.go
+++ b/internal/pipewire/pipewire_test.go
@@ -680,9 +680,6 @@ func TestContext(t *testing.T) {
}); err != nil {
t.Fatalf("SecurityContext.Create: error = %v", err)
}
- if err := ctx.GetCore().Sync(); err != nil {
- t.Fatalf("Sync: error = %v", err)
- }
// none of these should change
if coreInfo := ctx.GetCore().Info; !reflect.DeepEqual(coreInfo, &wantCoreInfo0) {