Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: simplify and fix tests for disk space checks on snap remove #9274

Merged
merged 2 commits into from Sep 4, 2020

Conversation

stolowski
Copy link
Contributor

Simplify unit tests for disk space checks on remove, and fix the test for feature flag which wasn't really testing the flag because snapstate.AutomaticSnapshot mock was returning NothingToDo error (meaning feature flag conditional wasn't hit), thanks @pedronis for spotting.

Copy link
Collaborator

@pedronis pedronis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, name tweak

return err
}

func (s *snapmgrTestSuite) TestRemoveDiskSpaceCheckDisabledWhenNoSnapshot(c *C) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/Disabled/DoesNothing/

Copy link
Contributor

@mvo5 mvo5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

\o/

@mvo5 mvo5 merged commit 80b269b into snapcore:master Sep 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants