Skip to content

Commit

Permalink
Fix amp-hulu test flaky time out (#7135)
Browse files Browse the repository at this point in the history
  • Loading branch information
muxin committed Jan 21, 2017
1 parent d17e7e2 commit e88bd6d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions extensions/amp-hulu/0.1/test/test-amp-hulu.js
Expand Up @@ -14,7 +14,10 @@
* limitations under the License.
*/

import {createIframePromise} from '../../../../testing/iframe';
import {
createIframePromise,
doNotLoadExternalResourcesInTest,
} from '../../../../testing/iframe';
import '../amp-hulu';
import {adopt} from '../../../../src/runtime';

Expand All @@ -23,7 +26,8 @@ adopt(window);
describe('amp-hulu', () => {

function getHulu(eid, opt_responsive) {
return createIframePromise().then(iframe => {
return createIframePromise(/*opt_runtimeOff*/ true).then(iframe => {
doNotLoadExternalResourcesInTest(iframe.win);
const hulu = iframe.doc.createElement('amp-hulu');
hulu.setAttribute('data-eid', eid);
hulu.setAttribute('width', '111');
Expand Down

0 comments on commit e88bd6d

Please sign in to comment.