Skip to content

Commit

Permalink
Sleep 5 ms instead of 500 ms
Browse files Browse the repository at this point in the history
  • Loading branch information
jmglov committed Feb 15, 2024
1 parent 06ccccb commit d42e34a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/quickblog/api_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@
:templates-dir templates-dir
:cache-dir cache-dir
:out-dir out-dir})]
(Thread/sleep 500)
(Thread/sleep 5)
(write-test-post posts-dir)
(write-test-file assets-dir "asset.txt" "something")
(render)
Expand Down Expand Up @@ -361,7 +361,7 @@
(is (= (map str [filename mtime])
(map str [filename (fs/last-modified-time filename)]))))
;; Should rewrite all but metadata-cached files when post modified
(Thread/sleep 500)
(Thread/sleep 5)
(write-test-post posts-dir)
(render)
(doseq [[filename mtime] content-cached]
Expand All @@ -371,7 +371,7 @@
(is (= (map str [filename mtime])
(map str [filename (fs/last-modified-time filename)]))))
;; Should rewrite everything when metadata modified
(Thread/sleep 500)
(Thread/sleep 5)
(write-test-post posts-dir {:title "Changed", :tags #{"not-clojure"}})
(render)
(doseq [[filename mtime] (merge content-cached metadata-cached)]
Expand Down Expand Up @@ -425,7 +425,7 @@
(is (= #{"clojure1.html"
"clojurescript1.html"}
(post-ids (fs/file out-dir "planetclojure.xml"))))
(Thread/sleep 500)
(Thread/sleep 5)
(write-test-post posts-dir {:file "clojure2.md"
:tags #{"clojure"}})
(write-test-post posts-dir {:file "random2.md"
Expand Down

0 comments on commit d42e34a

Please sign in to comment.