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:
parent
fb1806f3e9
commit
1de1f0b5c1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user