Skip to content

Commit

Permalink
Fix bug in Annex I functional test. Also increase timeout for Karma t…
Browse files Browse the repository at this point in the history
…ests to 120 seconds
  • Loading branch information
dsilhavy committed Jan 22, 2025
1 parent 674660b commit f4fc204
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions test/functional/config/karma.functional.conf.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ module.exports = function (config) {
autoWatch: false,

captureTimeout: 600000,
browserNoActivityTimeout: 90000,
browserDisconnectTimeout: 90000,
browserNoActivityTimeout: 120000,
browserDisconnectTimeout: 120000,
browserDisconnectTolerance: 2,

// start these browsers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"all"
],
"excluded": [
"vendor/google-ad-manager-emsg"
]
},
"testvectors": [
Expand Down
6 changes: 4 additions & 2 deletions test/functional/test/feature-support/annex-i.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,17 @@ Utils.getTestvectorsForTestcase(TESTCASE).forEach((item) => {
describe(`${TESTCASE} - ${item.name} - ${mpd}`, () => {
let playerAdapter;

before(() => {
before(function () {
if (!item.testdata || !item.testdata.annexI || !item.testdata.annexI.mediaTypes || item.testdata.annexI.mediaTypes.length === 0 || !item.testdata.annexI.expectedQueryString) {
this.skip();
}
playerAdapter = initializeDashJsAdapter(item, mpd);
})

after(() => {
playerAdapter.destroy();
if (playerAdapter) {
playerAdapter.destroy();
}
})

it(`Checking playing state`, async () => {
Expand Down

0 comments on commit f4fc204

Please sign in to comment.