Signed-off-by: faumaray <faumaray@gmail.com>
This commit is contained in:
faumaray committed 2026-07-12 17:55:24 +03:00
1 parent 7b8dcd9f31
commit df7fefa85c
7 files changed
+3 -134

No files matched your search

-19
View File
@@ -48,22 +48,3 @@ TEST_CASE(whisper_targets_report_empty_state)
targets.clients.push_back(ClientId{7});
CHECK(!targets.empty());
}
TEST_CASE(logical_voice_streams_have_strong_independent_handles)
{
Client client;
auto first = client.createVoiceStream();
auto second = client.createVoiceStream();
CHECK(first.has_value());
CHECK(second.has_value());
CHECK(first->value != second->value);
WhisperTargets targets;
targets.clients.push_back(ClientId{7});
const std::uint8_t frame[] = {1, 2, 3};
auto sent = client.sendWhisper(*first, frame, targets);
CHECK(!sent.has_value());
CHECK(sent.error().code == Error::Code::NotConnected);
CHECK(client.destroyVoiceStream(*first).has_value());
CHECK(!client.destroyVoiceStream(*first).has_value());
CHECK(client.destroyVoiceStream(*second).has_value());
}