Modified the concurrent test to illustrate problem with prepared statement

This commit is contained in:
Joe Nelson
2016-02-22 20:58:44 -08:00
parent c28b26d949
commit de772b9246
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -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