From 3868b0e964bf4bbb5ef22cecea4d3aa804503256 Mon Sep 17 00:00:00 2001 From: liquidz Date: Mon, 2 Oct 2023 11:01:41 +0900 Subject: [PATCH] fix: Fix type hist positions in tests --- test/tarayo/mail/mime/message_test.clj | 3 ++- test/tarayo/test_helper.clj | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/tarayo/mail/mime/message_test.clj b/test/tarayo/mail/mime/message_test.clj index f03d209..1665489 100644 --- a/test/tarayo/mail/mime/message_test.clj +++ b/test/tarayo/mail/mime/message_test.clj @@ -28,7 +28,8 @@ (.saveChanges msg) (t/is (= "foo" (.getMessageID msg))))))) -(defn- ^MimeMessage gen-test-message +(defn- gen-test-message + ^MimeMessage [] (let [{:keys [session]} (h/test-connection) ^Calendar cal (doto (Calendar/getInstance) diff --git a/test/tarayo/test_helper.clj b/test/tarayo/test_helper.clj index 072d3d8..90b5fb0 100644 --- a/test/tarayo/test_helper.clj +++ b/test/tarayo/test_helper.clj @@ -61,7 +61,8 @@ (tarayo-user-agent? (first x)) (some? (re-seq #"^tarayo/.+$" x)))) -(defn ^SMTPTransport test-transport +(defn test-transport + ^SMTPTransport [] (proxy [SMTPTransport] [(session/make-session) (jakarta.mail.URLName. "localhost")] (connect