Fail tests when sql fixtures fail to load
This commit is contained in:
committed by
Steve Chávez
parent
65fc672417
commit
1f69822fa3
+1
-1
@@ -139,7 +139,7 @@ resetDb dbConn = loadFixture dbConn "data"
|
|||||||
|
|
||||||
loadFixture :: Text -> FilePath -> IO()
|
loadFixture :: Text -> FilePath -> IO()
|
||||||
loadFixture dbConn name =
|
loadFixture dbConn name =
|
||||||
void $ readProcess "psql" [toS dbConn, "-a", "-f", "test/fixtures/" ++ name ++ ".sql"] []
|
void $ readProcess "psql" ["--set", "ON_ERROR_STOP=1", toS dbConn, "-a", "-f", "test/fixtures/" ++ name ++ ".sql"] []
|
||||||
|
|
||||||
rangeHdrs :: ByteRange -> [Header]
|
rangeHdrs :: ByteRange -> [Header]
|
||||||
rangeHdrs r = [rangeUnit, (hRange, renderByteRange r)]
|
rangeHdrs r = [rangeUnit, (hRange, renderByteRange r)]
|
||||||
|
|||||||
Reference in New Issue
Block a user