Fail tests when sql fixtures fail to load

This commit is contained in:
Robert Vollmert
2019-06-02 01:26:52 -05:00
committed by Steve Chávez
parent 65fc672417
commit 1f69822fa3
+1 -1
View File
@@ -139,7 +139,7 @@ resetDb dbConn = loadFixture dbConn "data"
loadFixture :: Text -> FilePath -> IO()
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 r = [rangeUnit, (hRange, renderByteRange r)]