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

Increase test timefactor on Travis #1048

Merged
merged 3 commits into from
Feb 11, 2020

Conversation

seglo
Copy link
Contributor

@seglo seglo commented Feb 10, 2020

Increase the akka.test.timefactor for Travis tests. This should help mitigate timeouts in certain tests, like those with frequently stream restarts in TransactionsSpec (specifically #826). A project default was defined in #994, but when I repeated the test locally I observed some runs still taking longer than the max allowed time (3x10sec=30sec). This new timefactor should allow for test runs of up to 60 seconds.

Instead of increasing the project default we can instead override the configuration on Travis builds only.

EDIT: Passing a system property (or any JVM flag) to the underlying ScalaTest suite and through SBT was more difficult than I thought. I opted to use a global environment variable with an optional override in the test application.conf instead.

https://stackoverflow.com/questions/29857985/how-to-set-system-property-for-a-scalatest-from-sbt-command-line

EDIT 2: Also removes the unused imports failing some of the build.

@seglo seglo force-pushed the seglo/increase-test-timefactor-travis branch from 470597d to d437c5d Compare February 10, 2020 21:21
@seglo seglo requested a review from ennru February 11, 2020 02:55
Copy link
Member

@ennru ennru left a comment

Choose a reason for hiding this comment

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

LGTM.

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.

2 participants