From babd5fb4c63cb0b4975bfb7ff6e85c2ee138f6f5 Mon Sep 17 00:00:00 2001 From: Marco Vermeulen Date: Fri, 31 Mar 2023 17:37:31 +0100 Subject: [PATCH] Remove obsolete candidates cache spec. --- .../specs/CandidatesCacheUpdateSpec.groovy | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/src/test/groovy/sdkman/specs/CandidatesCacheUpdateSpec.groovy b/src/test/groovy/sdkman/specs/CandidatesCacheUpdateSpec.groovy index fd6d1aa8..0e52b148 100644 --- a/src/test/groovy/sdkman/specs/CandidatesCacheUpdateSpec.groovy +++ b/src/test/groovy/sdkman/specs/CandidatesCacheUpdateSpec.groovy @@ -39,27 +39,6 @@ class CandidatesCacheUpdateSpec extends SdkmanEnvSpecification { !bash.output.contains("SDKMAN 5.0.0") } - void "should NOT issue a warning if cache is older than a month"() { - given: - bash = sdkmanBashEnvBuilder - .withCandidates(['groovy']) - .build() - - and: - candidatesCache.setLastModified(((new Date() - 31) as Date).time) - - and: - bash.start() - - when: - bash.execute("source $bootstrapScript") - bash.execute("sdk help") - - then: - !bash.output.contains('We periodically need to update the local cache.') - !bash.output.contains('$ sdk update') - } - void "should log a success message if cache exists"() { given: bash = sdkmanBashEnvBuilder