1
1
mirror of https://github.com/github/semantic.git synced 2024-12-29 18:06:14 +03:00

try catching ParserTimedOut exceptions in parse-examples

This commit is contained in:
Patrick Thomson 2018-10-16 17:39:36 -04:00
parent fb1806f3e9
commit 1de1f0b5c1

View File

@ -50,6 +50,7 @@ main = withOptions opts $ \ config logger statter -> hspec . parallel $ do
Left (SomeException e) -> case cast e of
-- We have a number of known assignment timeouts, consider these pending specs instead of failing the build.
Just (AssignmentTimedOut _ _) -> pendingWith $ show (displayException e)
Just (ParserTimedOut _ _) -> pendingWith $ show (displayException e)
-- Other exceptions are true failures
_ -> expectationFailure (show (displayException e))
_ -> if file `elem` knownFailures