diff --git a/js/google_ima.js b/js/google_ima.js index b3453a7..d5dfc43 100644 --- a/js/google_ima.js +++ b/js/google_ima.js @@ -50,7 +50,7 @@ require("../html5-common/js/utils/utils.js"); //Constants var DEFAULT_IMA_IFRAME_Z_INDEX = 10004; - var DEFAULT_ADS_REQUEST_TIME_OUT = 5000; + var DEFAULT_ADS_REQUEST_TIME_OUT = 15000; var AD_RULES_POSITION_TYPE = 'r'; var NON_AD_RULES_POSITION_TYPE = 't'; var NON_AD_RULES_PERCENT_POSITION_TYPE = 'p'; diff --git a/test/unit-tests/ima_test.js b/test/unit-tests/ima_test.js index b696151..e682308 100644 --- a/test/unit-tests/ima_test.js +++ b/test/unit-tests/ima_test.js @@ -233,7 +233,7 @@ describe('ad_manager_ima', function() amc.adManagerSettings[amc.AD_SETTINGS.AD_LOAD_TIMEOUT] = null; initialize(); //Value of DEFAULT_ADS_REQUEST_TIME_OUT - expect(ima.maxAdsRequestTimeout).to.be(5000); + expect(ima.maxAdsRequestTimeout).to.be(15000); }); it('Init: ad manager ignores undefined timeout values', function() @@ -241,7 +241,7 @@ describe('ad_manager_ima', function() amc.adManagerSettings = {}; initialize(); //Value of DEFAULT_ADS_REQUEST_TIME_OUT - expect(ima.maxAdsRequestTimeout).to.be(5000); + expect(ima.maxAdsRequestTimeout).to.be(15000); }); it('Init: ad manager ignores string timeout values', function() @@ -250,7 +250,7 @@ describe('ad_manager_ima', function() amc.adManagerSettings[amc.AD_SETTINGS.AD_LOAD_TIMEOUT] = "hello"; initialize(); //Value of DEFAULT_ADS_REQUEST_TIME_OUT - expect(ima.maxAdsRequestTimeout).to.be(5000); + expect(ima.maxAdsRequestTimeout).to.be(15000); }); it('Init: ad manager ignores object timeout values', function() @@ -259,7 +259,7 @@ describe('ad_manager_ima', function() amc.adManagerSettings[amc.AD_SETTINGS.AD_LOAD_TIMEOUT] = {}; initialize(); //Value of DEFAULT_ADS_REQUEST_TIME_OUT - expect(ima.maxAdsRequestTimeout).to.be(5000); + expect(ima.maxAdsRequestTimeout).to.be(15000); }); it('Init: ad manager ignores function timeout values', function() @@ -268,7 +268,7 @@ describe('ad_manager_ima', function() amc.adManagerSettings[amc.AD_SETTINGS.AD_LOAD_TIMEOUT] = function(){}; initialize(); //Value of DEFAULT_ADS_REQUEST_TIME_OUT - expect(ima.maxAdsRequestTimeout).to.be(5000); + expect(ima.maxAdsRequestTimeout).to.be(15000); }); it('Init: ad manager is ready', function()