Skip to content
This repository has been archived by the owner on Jan 3, 2019. It is now read-only.

Commit

Permalink
Making file tests less brittle (checking for 1 or more files, not exa…
Browse files Browse the repository at this point in the history
…ctly 1 file)
  • Loading branch information
escowles committed Nov 25, 2013
1 parent 478284b commit 8355d05
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -120,7 +120,7 @@ private void doIndexerGroupUpdateTest(final String pid) throws Exception {
// file should exist and contain data
File[] files = fileSerializerPath.listFiles(filter);
assertNotNull(files);
assertTrue("There should be 1 file", files.length == 1);
assertTrue("There should be at least 1 file", files.length > 0);

File f = files[0];
assertTrue("Filename doesn't match: " + f.getAbsolutePath(),
Expand Down Expand Up @@ -192,7 +192,7 @@ public void indexerGroupUpdateTestingFullPath() throws Exception {
// file should exist and contain data
File[] files = fileSerializerPath.listFiles(filter);
assertNotNull(files);
assertTrue("There should be 1 file", files.length == 1);
assertTrue("There should be at least 1 file", files.length > 0);

File f = files[0];
assertTrue("Filename doesn't match: " + f.getAbsolutePath(),
Expand Down

0 comments on commit 8355d05

Please sign in to comment.