Skip to content

Skip TestFastWalk_ErrPermission as root user #40

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nileshpatra
Copy link
Contributor

Parts (of this test which are expected to fail will pass as root user.

/cc: @charlievieth

@charlievieth
Copy link
Owner

@nileshpatra Apologies for the delay in responding to your PR and I'm wondering if this is still an issue you're running int and if so, would be possible to run the tests as a non-root user?

@charlievieth
Copy link
Owner

Additionally, it might be better to check the UID of the user to determine if they're root:

if u, err := user.Current(); err == nil && u.Uid == "0" {
	t.Skip("Cannot run test as root user")
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants