Explain expected result in filesystem test

This commit is contained in:
Andrew Gaul 2013-09-06 09:26:43 -07:00
parent 4b52f1ff86
commit 65729acd6e
1 changed files with 2 additions and 1 deletions

View File

@ -506,7 +506,8 @@ public class FilesystemStorageStrategyImplTest {
while (containersIterator.hasNext()) {
retrievedBlobKeys.add(containersIterator.next());
}
assertEquals(retrievedBlobKeys.size() - 2, createBlobKeys.size(), "Different blobs number");
int expectedBlobs = retrievedBlobKeys.size() - 2; // ignore two directories
assertEquals(expectedBlobs, createBlobKeys.size(), "Different blobs number");
for (String createdBlobKey : createBlobKeys) {
assertTrue(retrievedBlobKeys.contains(createdBlobKey), "Blob " + createdBlobKey + " not found");
}