From 7deffeefa2bd40d2317c54fb097deed81fc4cf23 Mon Sep 17 00:00:00 2001 From: Noah Moss <32746338+noahmoss@users.noreply.github.com> Date: Fri, 28 Jan 2022 09:22:36 -0500 Subject: [PATCH] Fix clj-kondo warning introduced in #19963 (#20007) --- .../query_processor/streaming/xlsx_test.clj | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/test/metabase/query_processor/streaming/xlsx_test.clj b/test/metabase/query_processor/streaming/xlsx_test.clj index 6a8996abcb6..273e5002206 100644 --- a/test/metabase/query_processor/streaming/xlsx_test.clj +++ b/test/metabase/query_processor/streaming/xlsx_test.clj @@ -489,12 +489,12 @@ (deftest poi-tempfiles-test (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")) - expected-poifiles-count (count (file-seq poifiles-directory))] - (let [bos (ByteArrayOutputStream.) - os (BufferedOutputStream. bos) - results-writer (i/streaming-results-writer :xlsx os)] - (.close os) - (i/begin! results-writer {:data {:ordered-cols []}} {}) - (i/finish! results-writer {:row_count 0}) - ;; No additional files should exist in the temp directory - (is (= expected-poifiles-count (count (file-seq poifiles-directory)))))))) + expected-poifiles-count (count (file-seq poifiles-directory)) + bos (ByteArrayOutputStream.) + os (BufferedOutputStream. bos) + results-writer (i/streaming-results-writer :xlsx os)] + (.close os) + (i/begin! results-writer {:data {:ordered-cols []}} {}) + (i/finish! results-writer {:row_count 0}) + ;; No additional files should exist in the temp directory + (is (= expected-poifiles-count (count (file-seq poifiles-directory))))))) -- GitLab