Skip to content

Commit

Permalink
Merge #644
Browse files Browse the repository at this point in the history
644: Added failer to test_contexts to avoid CI timeout r=pathunstrom a=sgavil

Added `Failer` to basic systems in order to avoid timeouts. Closes #550

Co-authored-by: sgavil <sergio.gavilan@seddi.com>
  • Loading branch information
bors[bot] and sgavil authored Oct 8, 2021
2 parents 2c4cca0 + 1c0430b commit dac9190
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,6 @@ Halle Jones|HJones@aliacy.com||
[Victor Hart](https://github.com/vicohart) | [vicohart@gmail.com](vicohart@gmail.com) |
[nilamo](https://github.com/nilamo) | [7nilamo@gmail.com](7nilamo@gmail.com) |
[Abhijeet](https://github.com/abhijeetgupto) |[abhigupta7b@gmail.com](abhigupta7b@gmail.com) | [@abhijeetgupto](https://twitter.com/abhijeetgupto)|
[Stephen James](https://github.com/sjames1958gm) | [sajames1958@gmail.com](sajames1958@gmail.com) |
[Stephen James](https://github.com/sjames1958gm) | [sajames1958@gmail.com](sajames1958@gmail.com) |
[Sergio Gavilán](https://github.com/sgavil) | [ssjsrgx@gmail.com](ssjsrgx@gmail.com) | [@sgavil01](https://twitter.com/sgavil01)

2 changes: 1 addition & 1 deletion tests/test_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def __enter__(self):
def __exit__(self, exc_type, exc_val, exc_tb):
self.exited = True

engine = GameEngine(Scene, basic_systems=[FakeRenderer, Quitter])
engine = GameEngine(Scene, basic_systems=[FakeRenderer, Quitter, Failer], message="Will only time out.", fail=lambda x: False)
engine.run()
for system in engine.children._systems:
if isinstance(system, FakeRenderer):
Expand Down

0 comments on commit dac9190

Please sign in to comment.