mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-11-04 06:32:59 +00:00
tests: import </> for both database flavours
This commit is contained in:
1 parent
83b5ed14b3
commit
c8ea873674
2 files changed
+2
-2
No files matched your search
@@ -46,6 +46,7 @@ import Simplex.Messaging.Transport
|
||||
import Simplex.Messaging.Util (safeDecodeUtf8)
|
||||
import Simplex.Messaging.Version
|
||||
import System.Directory (copyFile, doesDirectoryExist, doesFileExist)
|
||||
import System.FilePath ((</>))
|
||||
import System.Mem.Weak (deRefWeak)
|
||||
import Test.Hspec hiding (it)
|
||||
#if defined(dbPostgres)
|
||||
@@ -53,7 +54,6 @@ import Database.PostgreSQL.Simple (Only (..))
|
||||
#else
|
||||
import Database.SQLite.Simple (Only (..))
|
||||
import Simplex.Chat.Options.DB
|
||||
import System.FilePath ((</>))
|
||||
#endif
|
||||
|
||||
chatDirectTests :: SpecWith TestParams
|
||||
|
||||
@@ -58,6 +58,7 @@ import Simplex.Messaging.Server.Env.STM hiding (subscriptions)
|
||||
import Simplex.Messaging.Transport
|
||||
import Simplex.Messaging.Version
|
||||
import System.Directory (copyFile, doesFileExist)
|
||||
import System.FilePath ((</>))
|
||||
import Test.Hspec hiding (it)
|
||||
#if defined(dbPostgres)
|
||||
import Database.PostgreSQL.Simple (Only (..))
|
||||
@@ -66,7 +67,6 @@ import Database.PostgreSQL.Simple.SqlQQ (sql)
|
||||
import Database.SQLite.Simple (Only (..))
|
||||
import Database.SQLite.Simple.QQ (sql)
|
||||
import Simplex.Chat.Options.DB
|
||||
import System.FilePath ((</>))
|
||||
#endif
|
||||
|
||||
chatGroupTests :: SpecWith TestParams
|
||||
|
||||
Reference in new issue
Block a user