Skip to content

Commit

Permalink
[SMALLFIX] Simplify flaky JsonJournalFormatterTest
Browse files Browse the repository at this point in the history
  • Loading branch information
aaudiber committed Oct 30, 2015
1 parent fbe8d7a commit ab76ad4
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -15,8 +15,8 @@

package tachyon.master.journal;

import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.util.Map;

import org.junit.Before;
Expand All @@ -41,8 +41,8 @@ protected JournalFormatter getFormatter() {
@Override
@Before
public void before() throws Exception {
String entriesFile = JsonJournalFormatterTest.class.getResource(JSON_SAMPLE_PATH).getFile();
mRootNode = new ObjectMapper().readTree(new File(entriesFile));
URL entriesURL = JsonJournalFormatterTest.class.getResource(JSON_SAMPLE_PATH);
mRootNode = new ObjectMapper().readTree(entriesURL);
super.before();
}

Expand Down

0 comments on commit ab76ad4

Please sign in to comment.