Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
199
Issues
199
List
Board
Labels
Milestones
Merge Requests
12
Merge Requests
12
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
haskell-gargantext
Commits
f7107206
Verified
Commit
f7107206
authored
Oct 09, 2025
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[tests] bring back parallel transaction tests
parent
02c8d5a4
Pipeline
#7976
passed with stages
in 105 minutes and 56 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Transactions.hs
test/Test/Database/Transactions.hs
+2
-2
No files found.
test/Test/Database/Transactions.hs
View file @
f7107206
...
...
@@ -228,7 +228,7 @@ tests = describe "Database Transactions" $ do
-- | Testing the transactional behaviour outside the classic GGTX operations.
-- We test that throwing exceptions in IO leads to rollbacks.
counterDBTests
::
Spec
counterDBTests
=
sequentia
l
$
around
withTestCounterDB
$
counterDBTests
=
paralle
l
$
around
withTestCounterDB
$
describe
"Counter Transactions"
$
do
describe
"Opaleye count queries"
$
do
it
"Supports counting rows"
opaCountQueries
...
...
@@ -248,7 +248,7 @@ counterDBTests = sequential $ around withTestCounterDB $
-- | Testing the transactional behaviour inside the classic GGTX operations.
-- We test that throwing something like a 'NodeError' results in a proper rollback.
ggtxDBTests
::
Spec
ggtxDBTests
=
sequentia
l
$
around
withTestDB
$
beforeWith
(
\
ctx
->
setupEnvironment
ctx
>>=
(
const
$
pure
ctx
))
$
ggtxDBTests
=
paralle
l
$
around
withTestDB
$
beforeWith
(
\
ctx
->
setupEnvironment
ctx
>>=
(
const
$
pure
ctx
))
$
describe
"GGTX Transactions"
$
do
describe
"Rollback support"
$
do
it
"can rollback if a ggtx error gets thrown"
testGGTXErrorRollback
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment