forked from orbit-oss/flask
try to address flakiness of lazy loading test
This commit is contained in:
parent
6f7762538b
commit
6d65595a3c
1 changed files with 3 additions and 1 deletions
|
|
@ -334,7 +334,9 @@ def test_lazy_load_error(monkeypatch):
|
|||
lazy = DispatchingApp(bad_load, use_eager_loading=False)
|
||||
|
||||
with pytest.raises(BadExc):
|
||||
lazy._flush_bg_loading_exception()
|
||||
# reduce flakiness by waiting for the internal loading lock
|
||||
with lazy._lock:
|
||||
lazy._flush_bg_loading_exception()
|
||||
|
||||
|
||||
def test_with_appcontext(runner):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue