mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-11-03 00:12:55 +00:00
tests: import only what Postgres builds use
This commit is contained in:
1 parent
862ba98ff0
commit
d2c9465f5d
2 files changed
+2
-2
No files matched your search
@@ -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)
|
||||
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user