@@ -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.
8484TEST_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.
127129TEST_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.
182186TEST_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