Skip to content

Commit d16532d

Browse files
committed
Ensure minimum number of fuzz tests on TagsMap
1 parent 2a7c6a2 commit d16532d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal-api/src/test/java/datadog/trace/api/TagMapFuzzTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
public final class TagMapFuzzTest {
1717
static final int NUM_KEYS = 128;
1818
static final int MAX_NUM_ACTIONS = 32;
19+
static final int MIN_NUM_ACTIONS = 8;
1920

2021
@Test
2122
void test() {
@@ -932,7 +933,7 @@ public static OptimizedTagMap test(TestCase test) {
932933
}
933934

934935
public static TestCase generateTest() {
935-
return generateTest(ThreadLocalRandom.current().nextInt(MAX_NUM_ACTIONS));
936+
return generateTest(ThreadLocalRandom.current().nextInt(MIN_NUM_ACTIONS, MAX_NUM_ACTIONS));
936937
}
937938

938939
public static TestCase generateTest(int size) {

0 commit comments

Comments
 (0)