@@ -234,11 +234,13 @@ describe(testName, function() {
234234 await sleep ( 1500 ) ;
235235
236236 recording . stop ( ) ;
237+ logInfo ( testName , 'Waiting for recording output signals for first recording' ) ;
237238 await handleStreamSignals ( EOBSOutputType . Recording , EOBSOutputSignal . Stopping , ETestErrorMsg . RecordingOutput ) ;
238239 await handleStreamSignals ( EOBSOutputType . Recording , EOBSOutputSignal . Stop , ETestErrorMsg . RecordingOutput ) ;
239240 await handleStreamSignals ( EOBSOutputType . Recording , EOBSOutputSignal . Wrote , ETestErrorMsg . RecordingOutput ) ;
240241
241242 recording2 . stop ( ) ;
243+ logInfo ( testName , 'Waiting for recording output signals for second recording' ) ;
242244 await handleStreamSignals ( EOBSOutputType . Recording , EOBSOutputSignal . Stopping , ETestErrorMsg . RecordingOutput ) ;
243245 await handleStreamSignals ( EOBSOutputType . Recording , EOBSOutputSignal . Stop , ETestErrorMsg . RecordingOutput ) ;
244246 await handleStreamSignals ( EOBSOutputType . Recording , EOBSOutputSignal . Wrote , ETestErrorMsg . RecordingOutput ) ;
@@ -248,6 +250,10 @@ describe(testName, function() {
248250 sceneItem2 . remove ( ) ;
249251 scene . release ( ) ;
250252 }
253+ catch ( error ) {
254+ logInfo ( testName , 'Error occurred during test execution: ' + error ) ;
255+ throw error ;
256+ }
251257 finally {
252258 const recordingEncoder = recording . videoEncoder ;
253259 osn . AdvancedRecordingFactory . destroy ( recording ) ;
@@ -352,6 +358,10 @@ describe(testName, function() {
352358
353359 scene . release ( ) ;
354360 }
361+ catch ( error ) {
362+ logInfo ( testName , 'Error occurred during test execution: ' + error ) ;
363+ throw error ;
364+ }
355365 finally {
356366 const recordingEncoder = recording . videoEncoder ;
357367 osn . AdvancedRecordingFactory . destroy ( recording ) ;
@@ -458,7 +468,11 @@ describe(testName, function() {
458468 sceneItem2 . remove ( ) ;
459469
460470 scene . release ( ) ;
461- } finally {
471+ } catch ( error ) {
472+ logInfo ( testName , 'Error occurred during test execution: ' + error ) ;
473+ throw error ;
474+ }
475+ finally {
462476 const recordingEncoder = recording . videoEncoder ;
463477 const recordingAudioEncoder = recording . audioEncoder ;
464478 osn . SimpleRecordingFactory . destroy ( recording ) ;
0 commit comments