Skip to content

Commit

Permalink
Clean up rebase fail in test file
Browse files Browse the repository at this point in the history
  • Loading branch information
jmglov committed Feb 15, 2024
1 parent b989488 commit 4f17cff
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions test/quickblog/api_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,6 @@
;; Should rewrite all but metadata-cached files when post modified
(Thread/sleep 5)
(write-test-post posts-dir)
(Thread/sleep 500)
(render)
(doseq [[filename mtime] content-cached]
(is (not= (map str [filename mtime])
Expand All @@ -374,19 +373,6 @@
;; Should rewrite everything when metadata modified
(Thread/sleep 5)
(write-test-post posts-dir {:title "Changed", :tags #{"not-clojure"}})
(println "Posts:" (map str (fs/glob posts-dir "**")))
(Thread/sleep 500)
(write-test-post posts-dir)
(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
(Thread/sleep 500)
(write-test-post posts-dir {:title "Changed", :tags #{"not-clojure"}})
(render)
(doseq [[filename mtime] (merge content-cached metadata-cached)]
(is (not= (map str [filename mtime])
Expand Down

0 comments on commit 4f17cff

Please sign in to comment.