dstl/baleen

Tests fail when run as a super-user

jamesdbaker opened this issue · 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.