From d2c9465f5d7f3ec0cbecea2cfdd4f175d0ef2943 Mon Sep 17 00:00:00 2001 From: shum Date: Thu, 22 Oct 2026 03:13:18 +0000 Subject: [PATCH] tests: import only what Postgres builds use --- tests/Bots/StoreService/BotTests.hs | 2 +- tests/Test.hs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Bots/StoreService/BotTests.hs b/tests/Bots/StoreService/BotTests.hs index ce999df3cf..c13dd1139b 100644 --- a/tests/Bots/StoreService/BotTests.hs +++ b/tests/Bots/StoreService/BotTests.hs @@ -63,11 +63,11 @@ import qualified Simplex.Messaging.Crypto as C import Simplex.Messaging.Crypto.BBS (BBSSecretKey, bbsKeyGen) import Simplex.Messaging.Encoding.String (strDecode, strEncode, textEncode) import Simplex.Messaging.Util (safeDecodeUtf8, tshow) -import System.FilePath (()) #if defined(dbPostgres) import Database.PostgreSQL.Simple (Only (..)) #else import Database.SQLite.Simple (Only (..)) +import System.FilePath (()) #endif import Test.Hspec hiding (it) diff --git a/tests/Test.hs b/tests/Test.hs index 75dfd38f11..67122b0c7d 100644 --- a/tests/Test.hs +++ b/tests/Test.hs @@ -31,7 +31,6 @@ import Bots.DirectoryTests import ChatClient import ChatTests import ChatTests.DBUtils -import ChatTests.Names (chatNamesTests) import ChatTests.Utils (xdescribe'') import Control.Logger.Simple import Data.Time.Clock.System @@ -59,6 +58,7 @@ import Simplex.Chat.Store.Postgres.Migrations (migrations) import Simplex.Messaging.Agent.Store.Postgres.Util (createDBAndUserIfNotExists, dropDatabaseAndUser) #else import APIDocs +import ChatTests.Names (chatNamesTests) import qualified Simplex.Messaging.TMap as TM import MobileTests import SchemaDump