This repository was archived by the owner on May 31, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/test/groovy/org/gradle/android/test Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ class RelocationTest extends Specification {
2323
2424 static final String DEFAULT_GRADLE_VERSION = " 4.4-rc-3"
2525 static final String DEFAULT_ANDROID_VERSION = " 3.1.0-alpha04"
26- static final String DEFAULT_ANDROID_CACHE_FIX_VERSION = " 0.1.11 "
26+ static final String DEFAULT_ANDROID_CACHE_FIX_VERSION = " 0.2.0 "
2727
2828 @Rule TemporaryFolder temporaryFolder
2929 File cacheDir
@@ -158,13 +158,13 @@ class RelocationTest extends Specification {
158158 }
159159
160160 boolean verify (BuildResult result ) {
161- println " Expecting ${ outcomes.values().count(FROM_CACHE)} tasks out of ${ outcomes.size()} to be cached"
161+ println " > Expecting ${ outcomes.values().count(FROM_CACHE)} tasks out of ${ outcomes.size()} to be cached"
162162
163163 def outcomesWithMatchingTasks = outcomes. findAll { result. task(it. key) }
164164 def hasMatchingTasks = outcomesWithMatchingTasks. size() == outcomes. size() && outcomesWithMatchingTasks. size() == result. tasks. size()
165165 if (! hasMatchingTasks) {
166- println " > Tasks missing: " + (outcomes. keySet() - outcomesWithMatchingTasks. keySet())
167- println " > Tasks in surplus: " + (result. tasks* . path - outcomesWithMatchingTasks. keySet())
166+ println " > Tasks missing: " + (outcomes. findAll { ! outcomesWithMatchingTasks. keySet(). contains(it . key) } )
167+ println " > Tasks in surplus: " + (result. tasks. findAll { ! outcomesWithMatchingTasks. keySet(). contains(it . path) } )
168168 }
169169
170170 boolean allOutcomesMatched = true
You can’t perform that action at this time.
0 commit comments