Skip to content

Commit babd5fb

Browse files
committed
Remove obsolete candidates cache spec.
1 parent b524183 commit babd5fb

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

src/test/groovy/sdkman/specs/CandidatesCacheUpdateSpec.groovy

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -39,27 +39,6 @@ class CandidatesCacheUpdateSpec extends SdkmanEnvSpecification {
3939
!bash.output.contains("SDKMAN 5.0.0")
4040
}
4141

42-
void "should NOT issue a warning if cache is older than a month"() {
43-
given:
44-
bash = sdkmanBashEnvBuilder
45-
.withCandidates(['groovy'])
46-
.build()
47-
48-
and:
49-
candidatesCache.setLastModified(((new Date() - 31) as Date).time)
50-
51-
and:
52-
bash.start()
53-
54-
when:
55-
bash.execute("source $bootstrapScript")
56-
bash.execute("sdk help")
57-
58-
then:
59-
!bash.output.contains('We periodically need to update the local cache.')
60-
!bash.output.contains('$ sdk update')
61-
}
62-
6342
void "should log a success message if cache exists"() {
6443
given:
6544
bash = sdkmanBashEnvBuilder

0 commit comments

Comments
 (0)