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

Fix a serialization test by not hardcoding tmp directory (#25880)

* fix serialization test by not hardcoding tmp directory

* clean imports

* cleanup

* change approach
parent 875137b6
No related merge requests found
...@@ -33,10 +33,9 @@ ...@@ -33,10 +33,9 @@
(sort (map str (u.files/files-seq path)))) (sort (map str (u.files/files-seq path))))
(files [& path-components] (files [& path-components]
(path-files (apply u.files/get-path dir path-components)))] (path-files (apply u.files/get-path dir path-components)))]
(is (= ["/tmp/serdes-dir/Card" (is (= (map
"/tmp/serdes-dir/Collection" #(.toString (u.files/get-path (System/getProperty "java.io.tmpdir") "serdes-dir" %))
"/tmp/serdes-dir/Dashboard" ["Card" "Collection" "Dashboard" "settings.yaml"])
"/tmp/serdes-dir/settings.yaml"]
(files))) (files)))
(testing "subdirs" (testing "subdirs"
(testing "Card" (testing "Card"
......
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