Espresso how to wait for some time(1 hour)?

前端 未结 3 1873
半阙折子戏
半阙折子戏 2020-12-30 01:03

In my test case I have to record for 1 hour, in robotium solo.sleep(600000) had done my work, but In espresso I am confused with IdlingResource concept. I have to start reco

3条回答
  •  攒了一身酷
    2020-12-30 01:21

    The default timeout that Espresso will wait for all registered resources to become idle is one minute.

    You can change this using the IdlingPolicies class to set an explicit timeout:

    IdlingPolicies.setIdlingResourceTimeout(1, TimeUnit.HOURS);
    

提交回复
热议问题