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 fail when run as a super-user #52

Open
jamesdbaker opened this issue Nov 22, 2017 · 0 comments
Open

Tests fail when run as a super-user #52

jamesdbaker opened this issue Nov 22, 2017 · 0 comments

Comments

@jamesdbaker
Copy link
Contributor

The following two tests fail when running as a user with super-user privileges (e.g. sudo, root) on Linux:

  • AllAnnotationsJsonConsumerTest.java
  • EntityCountTest.java

The cause of this is that when running as a super user, you have permission to write to read-only files. But the above tests attempt to write to read-only files in order to test the error handling. The tests expect the writes to fail, but as a super-user they don't and the test therefore fails instead.

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

No branches or pull requests

1 participant