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 form test flakiness #8096

Merged
merged 4 commits into from Mar 14, 2017
Merged

Fix form test flakiness #8096

merged 4 commits into from Mar 14, 2017

Conversation

kmh287
Copy link
Contributor

@kmh287 kmh287 commented Mar 13, 2017

Fix the flakiness in test-amp-form.

It seems unnecessary for the test to check if the error was thrown async. It should be enough to check that the error template was rendered.

Fixes #7962

@ampprojectbot
Copy link
Member

Hi, ampproject bot here! Here are a list of the owners that can approve your files.

/to @donttrustthisbot

  • extensions/amp-form/0.1/amp-form.js
  • extensions/amp-form/0.1/test/test-amp-form.js

});
});
this.xhrSubmitPromise_ = p;
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's only set this in test mode, Closure can eliminate the property in prod, then.

erwinmombay
erwinmombay previously approved these changes Mar 13, 2017
@erwinmombay erwinmombay requested review from erwinmombay and removed request for erwinmombay March 13, 2017 23:15
@ampprojectbot
Copy link
Member

Hi, ampproject bot here! Here are a list of the owners that can approve your files.

You may leave an issue comment stating "@ampprojectbot retry!" to force me to re-evaluate this Pull Request's status

/to @aghassemi

  • extensions/amp-form/0.1/amp-form.js
  • extensions/amp-form/0.1/test/test-amp-form.js

For any issues please file a bug at https://github.com/google/github-owners-bot/issues

@@ -366,8 +370,12 @@ export class AmpForm {
/** @type {../../../src/service/xhr-impl.FetchResponse} */ (
error));
rethrowAsync('Form submission failed:', error);
return error;
Copy link
Contributor

Choose a reason for hiding this comment

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

remove, we are not using this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@kmh287 kmh287 merged commit 70baaf1 into ampproject:master Mar 14, 2017
mrjoro pushed a commit to mrjoro/amphtml that referenced this pull request Apr 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants