Modified the concurrent test to illustrate problem with prepared statement
This commit is contained in:
@@ -20,7 +20,7 @@ spec :: SpecWith Application
|
|||||||
spec =
|
spec =
|
||||||
describe "Queryiny in parallel" $
|
describe "Queryiny in parallel" $
|
||||||
it "should not raise 'transaction in progress' error" $
|
it "should not raise 'transaction in progress' error" $
|
||||||
raceTest 3 $
|
raceTest 10 $
|
||||||
get "/fakefake"
|
get "/fakefake"
|
||||||
`shouldRespondWith` ResponseMatcher {
|
`shouldRespondWith` ResponseMatcher {
|
||||||
matchBody = Just [json|
|
matchBody = Just [json|
|
||||||
|
|||||||
+1
-1
@@ -23,7 +23,7 @@ main :: IO ()
|
|||||||
main = do
|
main = do
|
||||||
setupDb
|
setupDb
|
||||||
|
|
||||||
pool <- P.acquire (10, 10, cs testDbConn)
|
pool <- P.acquire (3, 10, cs testDbConn)
|
||||||
|
|
||||||
result <- P.use pool $ getDbStructure "test"
|
result <- P.use pool $ getDbStructure "test"
|
||||||
let dbStructure = either (error.show) id result
|
let dbStructure = either (error.show) id result
|
||||||
|
|||||||
Reference in New Issue
Block a user