Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
edmorley committed Jun 21, 2024
1 parent 29c50a8 commit b64aa54
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/run
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,27 @@ testCacheInvalidation() {

# Cold cache
compile "package-names" "${cache_dir}"
cat ${STD_OUT}
assertCaptured "Detected Aptfile or Stack changes, flushing cache"
assertCapturedSuccess

# Warm cache
compile "package-names" "${cache_dir}"
cat ${STD_OUT}
assertCaptured "Reusing cache"
assertCapturedSuccess

# Cache invalidated on stack change
compile "package-names" "${cache_dir}"
echo 'some-old-stack' > "${cache_dir}/.apt/STACK"
cat ${STD_OUT}
assertCaptured "Detected Aptfile or Stack changes, flushing cache"
assertCapturedSuccess

# Cache invalidated if stack version file missing (eg cache from old buildpack version)
compile "package-names" "${cache_dir}"
rm "${cache_dir}/.apt/STACK"
cat ${STD_OUT}
assertCaptured "Detected Aptfile or Stack changes, flushing cache"
assertCapturedSuccess
}
Expand Down

0 comments on commit b64aa54

Please sign in to comment.