Added cpp if to check for postgres flag
Added deletion of lord and deed entries to allow for a test to pass
This commit is contained in:
parent
03c9590581
commit
406c1ef46c
@ -645,6 +645,7 @@ main = do
|
||||
#endif
|
||||
return ()
|
||||
|
||||
#if defined(WITH_POSTGRESQL)
|
||||
it "works with now" $
|
||||
run $ do
|
||||
nowDb <- select $ return EP.now_
|
||||
@ -659,6 +660,7 @@ main = do
|
||||
|
||||
-- | Get the time diff and check it's less than half a second
|
||||
liftIO $ diffUTCTime nowUtc now `shouldSatisfy` (< halfSecond)
|
||||
#endif
|
||||
|
||||
it "works with round_" $
|
||||
run $ do
|
||||
@ -1500,6 +1502,9 @@ cleanDB = do
|
||||
delete $ from $ \(_ :: SqlExpr (Entity Follow)) -> return ()
|
||||
delete $ from $ \(_ :: SqlExpr (Entity Person)) -> return ()
|
||||
|
||||
delete $ from $ \(_ :: SqlExpr (Entity Deed)) -> return ()
|
||||
delete $ from $ \(_ :: SqlExpr (Entity Lord)) -> return ()
|
||||
|
||||
delete $ from $ \(_ :: SqlExpr (Entity CcList)) -> return ()
|
||||
|
||||
delete $ from $ \(_ :: SqlExpr (Entity ArticleTag)) -> return ()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user