Skip to content

Commit

Permalink
Test optimizations (#4454)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsilhavy committed Apr 15, 2024
1 parent a8e2d39 commit adc5d4f
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 103 deletions.
84 changes: 0 additions & 84 deletions test/functional/config/karma.webstorm.conf.cjs

This file was deleted.

Expand Up @@ -5,6 +5,6 @@
"reporters": [
"mocha",
"junit",
"BrowserStack"
"coverage"
]
}
3 changes: 1 addition & 2 deletions test/functional/config/test-configurations/local.json
@@ -1,7 +1,6 @@
{
"browsers": [
"chrome_custom",
"firefox_custom"
"chrome_custom"
],
"reporters": [
"mocha",
Expand Down
8 changes: 2 additions & 6 deletions test/functional/config/test-configurations/streams/smoke.json
Expand Up @@ -29,9 +29,7 @@
}
},
"includedTestfiles": [
"playback/play",
"playback/pause",
"playback/seek",
"playback/*",
"audio/*",
"text/*"
]
Expand Down Expand Up @@ -152,9 +150,7 @@
"type": "vod",
"url": "https://dash.akamaized.net/dash264/TestCases/1a/sony/SNE_DASH_SD_CASE1A_REVISED.mpd",
"includedTestfiles": [
"playback/play",
"playback/pause",
"playback/seek"
"playback/*"
]
}
]
Expand Down
9 changes: 7 additions & 2 deletions test/functional/test/advanced/no-reload-after-seek.js
@@ -1,4 +1,3 @@
import DashJsAdapter from '../../adapter/DashJsAdapter.js';
import Constants from '../../src/Constants.js';
import Utils from '../../src/Utils.js';
import {expect} from 'chai'
Expand All @@ -19,7 +18,13 @@ Utils.getTestvectorsForTestcase(TESTCASE).forEach((item) => {
let playerAdapter;

before(() => {
playerAdapter = initializeDashJsAdapter(item, mpd);
playerAdapter = initializeDashJsAdapter(item, mpd, {
streaming: {
buffer: {
fastSwitchEnabled: false
}
}
});
})

after(() => {
Expand Down
10 changes: 2 additions & 8 deletions test/unit/config/karma.unit.conf.cjs
Expand Up @@ -10,14 +10,8 @@ module.exports = function (config) {
frameworks: ['mocha', 'chai', 'webpack'],

plugins: [
'karma-webpack',
'karma-mocha',
'karma-chai',
'karma-coverage',
'karma-mocha-reporter',
'karma-chrome-launcher',
'karma-junit-reporter',
'karma-firefox-launcher'
'karma-*', // default plugins
'@*/karma-*', // default scoped plugins
],

middleware: [],
Expand Down

0 comments on commit adc5d4f

Please sign in to comment.