Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
nik9000 committed Dec 2, 2024
1 parent 9b75664 commit 1c5537a
Showing 1 changed file with 1 addition and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,19 +314,10 @@ public void testHugeManyConcat() throws IOException {
*/
public void testManyConcatFromRow() throws IOException {
int strings = 2000;
initManyLongs();
Response resp = manyConcat("ROW a=9999, b=9999, c=9999, d=9999, e=9999", strings);
assertManyStrings(resp, strings);
}

/**
* Hits a circuit breaker by building many moderately long strings.
*/
public void testHugeManyConcatFromRow() throws IOException {
// 10000 is too many for the parser
assertCircuitBreaks(() -> manyConcat("ROW a=9999, b=9999, c=9999, d=9999, e=9999", 10000));
}

/**
* Tests that generate many moderately long strings.
*/
Expand Down Expand Up @@ -383,18 +374,8 @@ public void testHugeManyRepeat() throws IOException {
*/
public void testManyRepeatFromRow() throws IOException {
int strings = 10000;
initManyLongs();
Response resp = manyRepeat("ROW a = 99", strings);
assertManyStrings(resp, 30);
}

/**
* Hits a circuit breaker by building many moderately long strings.
*/
public void testHugeManyRepeatFromRow() throws IOException {
initManyLongs();
assertCircuitBreaks(() -> manyRepeat("ROW a = 99", 30000));
// 100000 is too many for the parser
assertManyStrings(resp, strings);
}

/**
Expand Down

0 comments on commit 1c5537a

Please sign in to comment.