mirror of
https://github.com/sdkman/sdkman-cli.git
synced 2026-05-19 05:58:43 -04:00
Remove obsolete candidates cache spec.
This commit is contained in:
committed by
Marco Vermeulen
parent
b5241834a4
commit
babd5fb4c6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user