Skip to content

Commit

Permalink
Remove unused variable "store" in testOpenInvalidStoreFails. RandomAc…
Browse files Browse the repository at this point in the history
…cessFileStore is created just for the side-effect of the open call invoked from the constructor.
  • Loading branch information
ijuma committed Mar 10, 2009
1 parent 2fac2bd commit 2e47c7f
Showing 1 changed file with 1 addition and 6 deletions.
Expand Up @@ -141,12 +141,7 @@ public void testOpenInvalidStoreFails(int indexBytes, int dataBytes, boolean sho
indexOs.close();

try {
RandomAccessFileStore store = new RandomAccessFileStore("test",
dir,
1,
1,
1000,
100 * 1000 * 1000);
new RandomAccessFileStore("test", dir, 1, 1, 1000, 100 * 1000 * 1000);
if(!shouldWork)
fail("Able to open corrupt read-only store (index size = " + indexBytes
+ ", data bytes = " + dataBytes + ").");
Expand Down

0 comments on commit 2e47c7f

Please sign in to comment.