change retry tests

This commit is contained in:
jisookim0513 2014-06-20 13:45:04 -07:00
parent 3418291333
commit 5e7dfaf298
2 changed files with 1 additions and 11 deletions

View File

@ -24,7 +24,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
public class RetryQueryRunnerConfig
{
@JsonProperty
private int numTries = 0;
private int numTries = 4;
@JsonProperty
private boolean returnPartialResults = false;

View File

@ -203,11 +203,6 @@ public class RetryQueryRunnerTest
Lists.<Result<TimeseriesResultValue>>newArrayList()
);
actualResults = Sequences.toList(
runner.run(query, context),
Lists.<Result<TimeseriesResultValue>>newArrayList()
);
Assert.assertTrue("Should return a list with one element", ((List) actualResults).size() == 1);
Assert.assertTrue("Should have nothing in missingSegment list", ((List) context.get(RetryQueryRunner.missingSegments)).size() == 0);
}
@ -296,11 +291,6 @@ public class RetryQueryRunnerTest
Lists.<Result<TimeseriesResultValue>>newArrayList()
);
actualResults = Sequences.toList(
runner.run(query, context),
Lists.<Result<TimeseriesResultValue>>newArrayList()
);
Assert.assertTrue("Should return a list with one element", ((List) actualResults).size() == 1);
Assert.assertTrue("Should have nothing in missingSegment list", ((List) context.get(RetryQueryRunner.missingSegments)).size() == 0);
}