Skip to content

1.x: Test adjustments to reduce problems when tests run on Android #3504

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

Merged
merged 1 commit into from
Feb 22, 2016

Conversation

akarnokd
Copy link
Member

@akarnokd akarnokd commented Nov 9, 2015

These changes may help in reducing problems when the tests are run on an Android emulation:

  • set an uncaught exception handler because the native error handler crashes the entire test run.
  • reduce memory usage by some tests by doing fewer loops or items.
  • fix a missing backpressure case as Android starts threads much slower (100ms?).

@akarnokd akarnokd added the Test label Nov 9, 2015
@akarnokd akarnokd added this to the 1.0.x milestone Nov 9, 2015
Thread.currentThread().setUncaughtExceptionHandler(new UncaughtExceptionHandler() {
@Override
public void uncaughtException(Thread t, Throwable e) {
// ignoring
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 assert that UncaughtExceptionHandler received throwable?

@akarnokd
Copy link
Member Author

akarnokd commented Nov 9, 2015

Adjusted tests as requested.

@artem-zinnatullin
Copy link
Contributor

@akarnokd now testErrorThrownIssue1685 fails on CI

@akarnokd
Copy link
Member Author

akarnokd commented Nov 9, 2015

I've increased the wait to 1s, let's hope that's enough waiting time. Travis tends to have some strange thread delays.

@artem-zinnatullin
Copy link
Contributor

👍

@artem-zinnatullin
Copy link
Contributor

Can we merge this, please? Required for running tests on Android during the CI #3503.

@zsxwing
Copy link
Member

zsxwing commented Feb 21, 2016

👍

akarnokd added a commit that referenced this pull request Feb 22, 2016
1.x: Test adjustments to reduce problems when tests run on Android
@akarnokd akarnokd merged commit 3af1afe into ReactiveX:1.x Feb 22, 2016
@akarnokd akarnokd deleted the AndroidTestFixes branch February 22, 2016 06:37
@stevegury
Copy link
Member

👍

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.

4 participants