baleen icon indicating copy to clipboard operation
baleen copied to clipboard

Tests fail when run as a super-user

Open jamesdbaker opened this issue 7 years ago • 0 comments

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.

jamesdbaker avatar Nov 22 '17 21:11 jamesdbaker