Skip to content

Commit a754a6f

Browse files
committed
NIJ chunky logging on failing test
1 parent 48967c0 commit a754a6f

3 files changed

Lines changed: 17 additions & 1 deletion

File tree

src/streaming/controllers/StreamController.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1681,29 +1681,43 @@ function StreamController() {
16811681
}
16821682

16831683
function reset() {
1684+
console.log('checkconfig');
16841685
_checkConfig();
16851686

1687+
console.log('timesynccontroller');
16861688
timeSyncController.reset();
16871689

1690+
console.log('flushplaylistmetrics');
16881691
_flushPlaylistMetrics(hasMediaError || hasInitialisationError ? PlayListTrace.FAILURE_STOP_REASON : PlayListTrace.USER_REQUEST_STOP_REASON);
16891692

16901693
for (let i = 0, ln = streams ? streams.length : 0; i < ln; i++) {
16911694
const stream = streams[i];
1695+
console.log(`reset stream with id ${stream.getId()}`);
16921696
stream.reset(hasMediaError);
16931697
}
16941698

1699+
console.log('unregisterevents');
16951700
unRegisterEvents();
16961701

1702+
console.log('reset baseurlcontroller');
16971703
baseURLController.reset();
1704+
console.log('manifestUpdater');
16981705
manifestUpdater.reset();
1706+
console.log('eventController');
16991707
eventController.reset();
1708+
console.log('dashMetrics');
17001709
dashMetrics.clearAllCurrentMetrics();
1710+
console.log('manifestModel');
17011711
manifestModel.setValue(null);
1712+
console.log('manifestLoader');
17021713
manifestLoader.reset();
1714+
console.log('timelineConverter');
17031715
timelineConverter.reset();
1716+
console.log('initCache');
17041717
initCache.reset();
17051718

17061719
if (mediaSource) {
1720+
console.log('detachMediaSource');
17071721
mediaSourceController.detachMediaSource(videoModel);
17081722
mediaSource = null;
17091723
}
@@ -1712,6 +1726,7 @@ function StreamController() {
17121726
protectionController = null;
17131727
protectionData = null;
17141728
if (manifestModel.getValue()) {
1729+
console.log('protectionController');
17151730
eventBus.trigger(Events.PROTECTION_DESTROYED, { data: manifestModel.getValue().url });
17161731
}
17171732
}

test/unit/test/core/core.Debug.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ let debug, settings;
1111

1212
describe('Debug', function () {
1313
before(function () {
14-
chai.spy.on(console, ['log', 'debug','info','warn','error'], () => {})
14+
//chai.spy.on(console, ['log', 'debug','info','warn','error'], () => {})
1515
});
1616

1717
after(function () {

test/unit/test/streaming/streaming.controllers.StreamController.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ describe('StreamController', function () {
207207
});
208208

209209
it('should call reset if MANIFEST_UPDATED event is triggered with an error parameter', function () {
210+
console.log('start update error test');
210211
let spy = chai.spy();
211212
eventBus.on(Events.STREAM_TEARDOWN_COMPLETE, spy);
212213

0 commit comments

Comments
 (0)