Skip to content

Commit

Permalink
Fix flaky tests
Browse files Browse the repository at this point in the history
For some reason running Gradle 3.0 and 5.6.1 causes the integration
tests to fail locally.

Travis builds broke with the default OS changing to Xenial, so going
back to Trusty to see if that stabilizes it.
  • Loading branch information
ben-manes committed Aug 29, 2019
1 parent a74925d commit 1318ed1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dist: trusty
language: java
cache:
directories:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ final class DifferentGradleVersionsSpec extends Specification {
dependencies {
compile 'com.google.inject:guice:2.0'
}
dependencyUpdates.resolutionStrategy {
componentSelection {
all {
Expand Down Expand Up @@ -101,7 +101,7 @@ final class DifferentGradleVersionsSpec extends Specification {
'5.3.1',
'5.4.1',
'5.5.1',
'5.6.1'
'5.6',
]
}

Expand Down Expand Up @@ -136,14 +136,14 @@ final class DifferentGradleVersionsSpec extends Specification {
dependencies {
compile 'com.google.inject:guice:2.0'
}
dependencyUpdates.gradleReleaseChannel="${gradleReleaseChannel}"
""".stripIndent()

when:
def result = GradleRunner.create()
.withGradleVersion('3.0')
.withGradleVersion('3.3')
.withProjectDir(testProjectDir.root)
.withArguments('dependencyUpdates')
.forwardStdError(srdErrWriter)
Expand Down

0 comments on commit 1318ed1

Please sign in to comment.