diff --git a/test/leiningen/test/deps.clj b/test/leiningen/test/deps.clj index fd325831..ba88ba9a 100644 --- a/test/leiningen/test/deps.clj +++ b/test/leiningen/test/deps.clj @@ -51,6 +51,10 @@ (let [rel-repo-snaps-dep (assoc pr :dependencies [slamhound])] (is (thrown? Exception (with-no-log (deps rel-repo-snaps-dep)))))) (finally + ;; This gc call is a workaround for a windows specific problem + ;; where jars fail to get deleted. An explicit call to gc seems + ;; to solve the issue. + (System/gc) (delete-file-recursively (:library-path sample-project) :silently)))) (def native-lib-files-map