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

Occasional test fails - Fake XHR #1639

Closed
snapwich opened this issue Sep 28, 2017 · 5 comments
Closed

Occasional test fails - Fake XHR #1639

snapwich opened this issue Sep 28, 2017 · 5 comments
Labels

Comments

@snapwich
Copy link
Collaborator

snapwich commented Sep 28, 2017

Type of issue

Bug

Description

This issue is to track a persistent issue with the hooks failing and breaking the tests:

HeadlessChrome 0.0.0 (Mac OS X 10.11.6) Trion adapter tests "after each" hook FAILED
	Error: Uncaught TypeError: Fake XHR onreadystatechange handler threw exception: Cannot read property 'seatbid' of undefined (node_modules/sinon/pkg/sinon.js:4469)
HeadlessChrome 0.0.0 (Mac OS X 10.11.6): Executed 1053 of 1430 (1 FAILED) (skipped 1) (0 secs / 2.904 secs)
HeadlessChrome 0.0.0 (Mac OS X 10.11.6) Trion adapter tests "after each" hook FAILED
	Error: Uncaught TypeError: Fake XHR onreadystatechange handler threw exception: CannotHeadlessChrome 0.0.0 (Mac OS X 10.11.6): Executed 1053 of 1430 (1 FAILED) (skipped 1) (18.494 secs / 2.904 secs)

Steps to reproduce

Run the tests a lot; not easy to reproduce otherwise.

Platform details

OSX, node 6.9.1, npm 3.10.8; but also seems to break occasionally in Travis-CI

Other information

Some similar issues fixed in #1626, but this issue remains and seems a bit more difficult to track down the cause of.

@mkendall07
Copy link
Member

Problem might fix itself with prebid 1.0. Not sure it's worth tracking down or not at this point.

@tedrand
Copy link
Contributor

tedrand commented Oct 12, 2017

Is there a way to re-run the Travis-CI tests when this happens on a PR update?

@dbemiller
Copy link
Contributor

@tedrand I think one of the project collaborators have to do it.

I think by now everyone who reviews prebid PRs knows about this... so if tests fail, we always check to see if it's a true failure.

I agree with @mkendall07, though... unit tests for adapters are much less complicated in prebid 1.0. There's a good chance these will fix themselves naturally.

@snapwich
Copy link
Collaborator Author

snapwich commented Dec 20, 2017

It should be noted that this is still an issue in prebid 1.0. My latest pull-request #1976 failed twice in a row due to these errors before passing on the third try.

The error was in a beforeEach hook one time and afterEach hook the other time, but both related to "unknown function done in handler` or something like that.

@stale
Copy link

stale bot commented Mar 6, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

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

No branches or pull requests

4 participants