Add auto-retry
This switches behave to the current dev release including the autoretry system.pull/2506/head
parent
35d9558998
commit
a6d1e91942
|
@ -5,5 +5,5 @@ pytest-cov==2.8.1
|
|||
cov-core==1.15.0
|
||||
sphinx==2.2.1
|
||||
sphinx-rtd-theme==0.4.3
|
||||
behave==1.2.6
|
||||
git+https://github.com/behave/behave@v1.2.7.dev1
|
||||
allure-behave==2.8.10
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
import logging
|
||||
from threading import Event, Lock
|
||||
from time import sleep, monotonic
|
||||
from behave.contrib.scenario_autoretry import patch_scenario_with_autoretry
|
||||
|
||||
from msm import MycroftSkillsManager
|
||||
from mycroft.audio import wait_while_speaking
|
||||
|
@ -95,6 +96,8 @@ def before_all(context):
|
|||
|
||||
def before_feature(context, feature):
|
||||
context.log.info('Starting tests for {}'.format(feature.name))
|
||||
for scenario in feature.scenarios:
|
||||
patch_scenario_with_autoretry(scenario, max_attempts=2)
|
||||
|
||||
|
||||
def after_all(context):
|
||||
|
|
Loading…
Reference in New Issue