From 3d909f04b817a60083fe99cea48c2674c0144dbc Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Fri, 20 Dec 2024 12:43:33 +0100 Subject: [PATCH] Disable test for Windows --- test/babashka/interop_test.clj | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/test/babashka/interop_test.clj b/test/babashka/interop_test.clj index 71fe2708..d732b8c2 100644 --- a/test/babashka/interop_test.clj +++ b/test/babashka/interop_test.clj @@ -195,16 +195,17 @@ (iterator-seq (clojure.lang.RT/iter [1 2 3]))))))) (deftest posix-file-attributes - (= 'java.util.HashSet - (bb nil - '(do - (import - [java.nio.file Files LinkOption Path] - [java.nio.file.attribute PosixFileAttributes]) - (-> (Files/readAttributes (Path/of "test-resources/posix-file-attributes.txt" - (into-array String [])) - PosixFileAttributes - ^"[Ljava.nio.file.LinkOption;" - (into-array LinkOption [])) - .permissions - type))))) + (when-not test-utils/windows? + (is (= 'java.util.HashSet + (bb nil + '(do + (import + [java.nio.file Files LinkOption Path] + [java.nio.file.attribute PosixFileAttributes]) + (-> (Files/readAttributes (Path/of "test-resources/posix-file-attributes.txt" + (into-array String [])) + PosixFileAttributes + ^"[Ljava.nio.file.LinkOption;" + (into-array LinkOption [])) + .permissions + type)))))))