Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix flakes by swapping setInterval with setTimeout #16194

Merged
merged 1 commit into from Jun 22, 2018

Conversation

cvializ
Copy link
Contributor

@cvializ cvializ commented Jun 20, 2018

Fixes #16179

@aghassemi
Copy link
Contributor

hmmm, what is the root cause of poll being flaky? we should really not mock things in integration tests.

@cvializ
Copy link
Contributor Author

cvializ commented Jun 20, 2018

I can only intermittently repro on the Windows Chrome platform because it's flaky : /

return poll(`wait for attribute ${attribute} on ${element.tagName}`, () => {
return element.getAttribute(attribute);
}, undefined, 8000);
function waitForAttribute(sandbox, element, attribute) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it's an integration test, I don't know if we want a stub...

@cvializ cvializ changed the title Fix flakes by swapping poll for a stub Fix flakes by swapping setInterval with setTimeout Jun 22, 2018
@cvializ
Copy link
Contributor Author

cvializ commented Jun 22, 2018

@cathyxz @aghassemi PTAL : )

@cvializ cvializ requested a review from aghassemi June 22, 2018 19:54
Copy link
Contributor

@aghassemi aghassemi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yay

@cvializ cvializ merged commit 53de1af into ampproject:master Jun 22, 2018
@cvializ
Copy link
Contributor Author

cvializ commented Jun 22, 2018

Flaking on master : (

cvializ added a commit that referenced this pull request Jun 22, 2018
cvializ added a commit that referenced this pull request Jun 22, 2018
* Revert "Shows hint overlay on up swipe like version 1.0 (#16258)"

This reverts commit 56566b4.

* Revert "Validator rollup (#16266)"

This reverts commit 66d09a2.

* Revert "throws error when using invalid component type in the config. (#16231)"

This reverts commit 3693815.

* Revert "Get rid of isRelayoutNeeded and refactor to onMeasureChanged (#16259)"

This reverts commit 18c1db9.

* Revert "Fix amp-pan-zoom zoom target bug and relayout bug (#16257)"

This reverts commit 5d6d391.

* Revert "Fix flakes by swapping setInterval with setTimeout (#16194)"

This reverts commit 53de1af.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants