async def METHOD_NAME(time, debug_worker: DebugWorker, config: Config, global_info: GlobalInfo, server, error_store: ErrorStore):
    config.override(Setting.SEND_ERROR_REPORTS, True)
    config.override(Setting.DRIVE_HOST_NAME, "localhost")
    # Simulate failure
    global_info.failed(Exception("boom"))
    await debug_worker.doWork()
    # And then success
    global_info.success()
    time.advance(days=1)
    await debug_worker.doWork()
    report = error_store.last_error
    assert report['report'] == {
        'duration': '1 day, 0:00:00'
    }