Skip to content

Commit

Permalink
Remove caching test for modified metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
jmglov committed Feb 15, 2024
1 parent e1ee9eb commit d43b5c0
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions test/quickblog/api_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -361,18 +361,8 @@
(doseq [[filename mtime] (merge content-cached clojure-metadata-cached)]
(is (= (map str [filename mtime])
(map str [filename (fs/last-modified-time filename)]))))
;; Should rewrite all but metadata-cached files when post modified
;; Should rewrite everything when post modified
(write-test-post posts-dir)
(Thread/sleep 500)
(render)
(doseq [[filename mtime] content-cached]
(is (not= (map str [filename mtime])
(map str [filename (fs/last-modified-time filename)]))))
(doseq [[filename mtime] clojure-metadata-cached]
(is (= (map str [filename mtime])
(map str [filename (fs/last-modified-time filename)]))))
;; Should rewrite everything when metadata modified
(write-test-post posts-dir {:title "Changed", :tags #{"not-clojure"}})
(println "Posts:" (map str (fs/glob posts-dir "**")))
(Thread/sleep 500)
(render)
Expand Down

0 comments on commit d43b5c0

Please sign in to comment.