Skip to content

Commit

Permalink
SQL-215 explicitly provide noop scanner in test
Browse files Browse the repository at this point in the history
  • Loading branch information
milt committed Nov 21, 2023
1 parent d7032ba commit a213313
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/test/com/yetanalytics/lrs/scan_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,14 @@
[:body :status]))))
(finally
(http/stop server)))))
;; And a scanner that always passes
(testing "Success"
(let [server (support/test-server)]
(let [server (support/test-server
:route-opts
{:file-scanner
(fn [in]
(slurp in)
nil)})]
(try
(http/start server)
(testing "Attachment"
Expand Down

0 comments on commit a213313

Please sign in to comment.