basho/bitcask — pull request #154 by evanmcc (2014-03-25 03:37:16+00:00)
Title: add explicit multifold test

Although there are several tests that test it implicitly, we don't have a test that explicitly checks that multifold is happening, is happening in parallel, and that multiple snapshots are correctly being kept.

The test preloads the keydir to some fullness where we know we aren't going to run into a freeze, then starts several successive folders. It then allows one iteration from each of the fold processes in order until there are no more iterations to be done. Finally, it checks that each of the returned lists is the correct length.

This test could be a little more careful and check the fold contents, but I think that length is a reasonable stand-in.