Skip to content
This repository was archived by the owner on Sep 8, 2024. It is now read-only.

Conversation

@forslund
Copy link
Collaborator

This is a way to fix #447

What it does

The PR adds a cleanup method to skills and allows this to be run when calling unload_skills(). For scheduled skills this cancels running timers that would be blocking termination. (as timers reference a class method the class won't be garbage collected)

The unload_skills() method is now called when the skill intent test is teared down allowing the unittest to finish directly.

@forslund forslund changed the title Test allow test to finsh immediately Allow test to finsh immediately Jan 14, 2017
Add cleanup procedure to skills:
MycroftSkill cleanup does nothing, ScheduledSkill will cancel running timers to make sure it's not blocking termination.

Tests updated to use this allowing unit test to exit after completion.
@forslund
Copy link
Collaborator Author

Not sure where the conflict came from, but it's rebased and clean now.

@aatchison aatchison merged commit 9d9ab7b into MycroftAI:dev Jan 20, 2017
forslund added a commit to forslund/mycroft-core that referenced this pull request Feb 9, 2017
Add cleanup procedure to skills:
MycroftSkill cleanup does nothing, ScheduledSkill will cancel running timers to make sure it's not blocking termination.

Tests updated to use this allowing unit test to exit after completion.
@forslund forslund deleted the bugfix/issue-447 branch September 22, 2017 08:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unittests never seem to finish running

2 participants