Skip to content

Commit 5cb576d

Browse files
skip if we cant make the PA
1 parent b557054 commit 5cb576d

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

‎src/tests/integration/test_platform_audio.cpp‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ class PlatformAudioIntegrationTest : public LiveKitTestBase {};
8282
// microphone is required: the source captures silence on headless runners,
8383
// but the publish/subscribe round-trip still completes.
8484
TEST_F(PlatformAudioIntegrationTest, PublishPlatformAudioTrackEndToEnd) {
85-
skipIfNotConfigured();
85+
if (!config_.available) {
86+
throw std::runtime_error("LIVEKIT_URL, LIVEKIT_TOKEN_A, and LIVEKIT_TOKEN_B not set");
87+
}
8688

8789
std::unique_ptr<PlatformAudio> platform_audio;
8890
try {
@@ -125,7 +127,9 @@ TEST_F(PlatformAudioIntegrationTest, PublishPlatformAudioTrackEndToEnd) {
125127
// Unpublishing a platform audio track must propagate to the remote, exercising
126128
// the source/track lifecycle that keeps the shared PlatformAudioState alive.
127129
TEST_F(PlatformAudioIntegrationTest, UnpublishPlatformAudioTrackPropagates) {
128-
skipIfNotConfigured();
130+
if (!config_.available) {
131+
throw std::runtime_error("LIVEKIT_URL, LIVEKIT_TOKEN_A, and LIVEKIT_TOKEN_B not set");
132+
}
129133

130134
std::unique_ptr<PlatformAudio> platform_audio;
131135
try {
@@ -180,7 +184,9 @@ TEST_F(PlatformAudioIntegrationTest, UnpublishPlatformAudioTrackPropagates) {
180184
// A single PlatformAudio manager can vend multiple independent sources, each
181185
// with a distinct FFI handle, and both should publish end-to-end.
182186
TEST_F(PlatformAudioIntegrationTest, MultipleSourcesFromOneManagerPublish) {
183-
skipIfNotConfigured();
187+
if (!config_.available) {
188+
throw std::runtime_error("LIVEKIT_URL, LIVEKIT_TOKEN_A, and LIVEKIT_TOKEN_B not set");
189+
}
184190

185191
std::unique_ptr<PlatformAudio> platform_audio;
186192
try {

0 commit comments

Comments
 (0)