baa8df9e by David LaPalomento Committed by GitHub

Cleanup mocked selectPlaylist (#838)

Leaving a mock version of selectPlaylist on the HlsHandler prototype leads to broken error handling in tests for encryption key fetching.
1 parent e4e9d157
......@@ -2551,6 +2551,7 @@ QUnit.test('uses user defined selectPlaylist from HlsHandler if specified', func
QUnit.equal(setSelectPlaylistCount, 1, 'uses set playlist selector');
Hls.STANDARD_PLAYLIST_SELECTOR = origStandardPlaylistSelector;
delete HlsHandler.prototype.selectPlaylist;
});
QUnit.module('HLS - Encryption', {
......