Skip to content

Commit

Permalink
Fix change of mocked config
Browse files Browse the repository at this point in the history
  • Loading branch information
dlmiddlecote committed Jul 9, 2019
1 parent 5d6d7f3 commit 18a1243
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/11-filtering-handlers/test_example_11.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def obj_absent():
def test_handler_filtering(mocker):

# To prevent lengthy threads in the loop executor when the process exits.
mocker.patch('kopf.clients.watching.DEFAULT_STREAM_TIMEOUT', 10)
mocker.patch('kopf.config.WatchersConfig.default_stream_timeout', 10)

# Run an operator and simulate some activity with the operated resource.
with kopf.testing.KopfRunner(['run', '--verbose', '--standalone', example_py]) as runner:
Expand Down

0 comments on commit 18a1243

Please sign in to comment.