diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-12-07 14:48:42 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-12-07 14:55:56 +0900 |
| commit | 15c2839a0997dd13e5a41e6a35b656e934f22040 (patch) | |
| tree | 56e43a1d3bc400dd6e83114b9a3ce02ff8fa61a0 /internal/pipewire/pipewire_test.go | |
| parent | b9b9705b520cd3effaba3dc5e94c83e36f655bc4 (diff) | |
internal/pipewire: respond to Core::Ping
There is currently no known message that will get the PipeWire server to emit this event. It should be handled regardless.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pipewire/pipewire_test.go')
| -rw-r--r-- | internal/pipewire/pipewire_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/pipewire/pipewire_test.go b/internal/pipewire/pipewire_test.go index b6de2837..fbe15718 100644 --- a/internal/pipewire/pipewire_test.go +++ b/internal/pipewire/pipewire_test.go @@ -845,6 +845,7 @@ func TestContextErrors(t *testing.T) { {"RoundtripUnexpectedEOFError ErrRoundtripEOFFooter", pipewire.ErrRoundtripEOFFooter, "unexpected EOF establishing message footer bounds"}, {"RoundtripUnexpectedEOFError ErrRoundtripEOFFooterOpcode", pipewire.ErrRoundtripEOFFooterOpcode, "unexpected EOF decoding message footer opcode"}, {"RoundtripUnexpectedEOFError invalid", pipewire.RoundtripUnexpectedEOFError(0xbad), "unexpected EOF"}, + {"InconsistentFilesError", &pipewire.InconsistentFilesError{0, 2}, "queued 0 files instead of the expected 2"}, {"UnsupportedOpcodeError", &pipewire.UnsupportedOpcodeError{ Opcode: 0xff, @@ -855,6 +856,11 @@ func TestContextErrors(t *testing.T) { Id: -1, Data: "\x00", }, "unknown proxy id -1"}, + + {"InvalidPingError", &pipewire.InvalidPingError{ + ID: 0xbad, + Sequence: 0xcafe, + }, "received Core::Ping seq 51966 targeting unknown proxy id 2989"}, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { |
