Skip to content

Commit 0a84d82

Browse files
committed
Use a different binary file type in the content-type tests
Fixes said tests on MacOS.
1 parent 2efc723 commit 0a84d82

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

test/clj/cider/nrepl/middleware/slurp_test.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
(t/deftest test-unrecognized-file
2424
(let [resp (slurp-url-to-content+body
25-
(.toString (io/resource "unknown.bin")))]
25+
(.toString (io/resource "unknown.unknown")))]
2626
(t/is (= ["application/octet-stream" {}] (:content-type resp)))
2727
(t/is (str/starts-with? (:body resp) "#binary[location="))
28-
(t/is (str/ends-with? (:body resp) ",size=3]"))))
28+
(t/is (str/ends-with? (:body resp) ",size=681]"))))

test/resources/unknown.bin

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/resources/unknown.unknown

681 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)