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