Skip to content
Snippets Groups Projects
Unverified Commit 7deffeef authored by Noah Moss's avatar Noah Moss Committed by GitHub
Browse files

Fix clj-kondo warning introduced in #19963 (#20007)

parent f78231cf
No related branches found
No related tags found
No related merge requests found
...@@ -489,12 +489,12 @@ ...@@ -489,12 +489,12 @@
(deftest poi-tempfiles-test (deftest poi-tempfiles-test
(testing "POI temporary files are cleaned up if output stream is closed before export completes (#19480)" (testing "POI temporary files are cleaned up if output stream is closed before export completes (#19480)"
(let [poifiles-directory (io/file (str (System/getProperty "java.io.tmpdir") "/poifiles")) (let [poifiles-directory (io/file (str (System/getProperty "java.io.tmpdir") "/poifiles"))
expected-poifiles-count (count (file-seq poifiles-directory))] expected-poifiles-count (count (file-seq poifiles-directory))
(let [bos (ByteArrayOutputStream.) bos (ByteArrayOutputStream.)
os (BufferedOutputStream. bos) os (BufferedOutputStream. bos)
results-writer (i/streaming-results-writer :xlsx os)] results-writer (i/streaming-results-writer :xlsx os)]
(.close os) (.close os)
(i/begin! results-writer {:data {:ordered-cols []}} {}) (i/begin! results-writer {:data {:ordered-cols []}} {})
(i/finish! results-writer {:row_count 0}) (i/finish! results-writer {:row_count 0})
;; No additional files should exist in the temp directory ;; No additional files should exist in the temp directory
(is (= expected-poifiles-count (count (file-seq poifiles-directory)))))))) (is (= expected-poifiles-count (count (file-seq poifiles-directory)))))))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment