Skip to content

Commit 48782e7

Browse files
committed
move schema test to the end
1 parent d909684 commit 48782e7

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

tests/Test.hs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,6 @@ main = do
7373
. before_ (createDirectoryIfMissing False "tests/tmp")
7474
. after_ (eventuallyRemove "tests/tmp" 3)
7575
$ do
76-
#if defined(dbPostgres)
77-
around_ (postgressBracket testDBConnectInfo) $
78-
describe "Agent PostgreSQL schema dump" $
79-
postgresSchemaDumpTest
80-
appMigrations
81-
["20250322_short_links"] -- snd_secure and last_broker_ts columns swap order on down migration
82-
(testDBOpts testDB)
83-
"src/Simplex/Messaging/Agent/Store/Postgres/Migrations/agent_postgres_schema.sql"
84-
#else
85-
describe "Agent SQLite schema dump" schemaDumpTest
86-
#endif
8776
describe "Core tests" $ do
8877
describe "Batching tests" batchingTests
8978
describe "Encoding tests" encodingTests
@@ -160,6 +149,17 @@ main = do
160149
describe "XFTP agent" xftpAgentTests
161150
describe "XRCP" remoteControlTests
162151
describe "Server CLIs" cliTests
152+
#if defined(dbPostgres)
153+
around_ (postgressBracket testDBConnectInfo) $
154+
describe "Agent PostgreSQL schema dump" $
155+
postgresSchemaDumpTest
156+
appMigrations
157+
["20250322_short_links"] -- snd_secure and last_broker_ts columns swap order on down migration
158+
(testDBOpts testDB)
159+
"src/Simplex/Messaging/Agent/Store/Postgres/Migrations/agent_postgres_schema.sql"
160+
#else
161+
describe "Agent SQLite schema dump" schemaDumpTest
162+
#endif
163163

164164
eventuallyRemove :: FilePath -> Int -> IO ()
165165
eventuallyRemove path retries = case retries of

0 commit comments

Comments
 (0)