diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-12-15 12:35:43 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-12-15 12:38:39 +0900 |
| commit | 2e806601693e0262641386ce5430d7e8d84b2a77 (patch) | |
| tree | bf8cf3cfbe0d3e8e01524a32ef5ab96ac66de5b5 /internal/outcome/sppipewire_test.go | |
| parent | d0a3c6a2f3ac4da3921fa525cf1ee5ea7d68eb1c (diff) | |
internal/outcome: look up pipewire-pulse path
This is for setting up the pipewire-pulse container in shim, for #29.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/outcome/sppipewire_test.go')
| -rw-r--r-- | internal/outcome/sppipewire_test.go | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/internal/outcome/sppipewire_test.go b/internal/outcome/sppipewire_test.go index 35ad8e50..3259915c 100644 --- a/internal/outcome/sppipewire_test.go +++ b/internal/outcome/sppipewire_test.go @@ -16,7 +16,7 @@ func TestSpPipeWireOp(t *testing.T) { checkOpBehaviour(t, []opBehaviourTestCase{ {"not enabled", func(bool, bool) outcomeOp { - return spPipeWireOp{} + return new(spPipeWireOp) }, func() *hst.Config { c := hst.Template() *c.Enablements = 0 @@ -24,8 +24,12 @@ func TestSpPipeWireOp(t *testing.T) { }, nil, nil, nil, nil, errNotEnabled, nil, nil, nil, nil, nil}, {"success", func(bool, bool) outcomeOp { - return spPipeWireOp{} - }, hst.Template, nil, []stub.Call{}, newI(). + return new(spPipeWireOp) + }, func() *hst.Config { + c := hst.Template() + c.DirectPipeWire = true + return c + }, nil, []stub.Call{}, newI(). // state.instance Ephemeral(system.Process, m(wantInstancePrefix), 0711). // toSystem |
