Skip to content

Commit 899204a

Browse files
committed
Refactor somewhat? Will allow for logging more stuff upon failure
1 parent 6e554c7 commit 899204a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

itest/src/edu/stanford/nlp/dcoref/DcorefBenchmarkSlowITest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
*/
3333
public class DcorefBenchmarkSlowITest {
3434

35-
private static String runCorefTest(boolean deleteOnExit) throws Exception {
35+
private static Counter<String> runCorefTest(boolean deleteOnExit) throws Exception {
3636
final File WORK_DIR_FILE = File.createTempFile("DcorefBenchmarkTest", "");
3737
if ( ! (WORK_DIR_FILE.delete() && WORK_DIR_FILE.mkdir())) {
3838
throw new RuntimeIOException("Couldn't create temp directory " + WORK_DIR_FILE);
@@ -60,7 +60,7 @@ private static String runCorefTest(boolean deleteOnExit) throws Exception {
6060
System.err.println("LOG FILE: " + logFile);
6161

6262
String actualResults = IOUtils.slurpFile(logFile);
63-
return actualResults;
63+
return getCorefResults(actualResults);
6464
}
6565

6666

@@ -145,7 +145,7 @@ public static Counter<String> getCorefResults(String resultsString) throws IOExc
145145

146146
@Test
147147
public void testDcoref() throws Exception {
148-
Counter<String> results = getCorefResults(runCorefTest(true));
148+
Counter<String> results = runCorefTest(true);
149149

150150
Counter<String> lowResults = new ClassicCounter<>();
151151
Counter<String> highResults = new ClassicCounter<>();

0 commit comments

Comments
 (0)