Skip to content
This repository was archived by the owner on Feb 21, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant