Skip to content

Commit

Permalink
Adapt the test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
nikita-volkov committed Jan 6, 2025
1 parent 3750870 commit f747782
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion conflicts-test/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ module Main where

import Control.Concurrent.Async qualified as F
import Hasql.Connection qualified as A
import Hasql.Connection.Setting qualified as H
import Hasql.Connection.Setting.Connection qualified as I
import Hasql.Connection.Setting.Connection.Param qualified as J
import Hasql.Session qualified as B
import Hasql.Transaction qualified as C
import Hasql.Transaction.Sessions qualified as G
Expand All @@ -22,7 +25,16 @@ main =
$ A.acquire connectionSettings
where
connectionSettings =
A.settings "localhost" 5432 "postgres" "postgres" "postgres"
[ H.connection
( I.params
[ J.host "localhost",
J.port 5432,
J.user "postgres",
J.password "postgres",
J.dbname "postgres"
]
)
]
release (connection1, connection2) =
do
transaction connection1 E.dropSchema
Expand Down
2 changes: 1 addition & 1 deletion hasql-transaction.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,6 @@ test-suite conflicts-test

build-depends:
async >=2.1 && <3,
hasql,
hasql >=1.9,
hasql-transaction,
rerebase >=1.11 && <2,

0 comments on commit f747782

Please sign in to comment.