@@ -34,9 +34,9 @@ func newTrieServer(files []string, l logf) *CarbonserverListener {
3434 listener .accessLogger = zap .NewNop ()
3535 listener .trieIndex = true
3636 listener .whisperData = "./testdata"
37- listener .maxGlobs = math .MaxInt64
38- listener .maxMetricsGlobbed = math .MaxInt64
39- listener .maxMetricsRendered = math .MaxInt64
37+ listener .maxGlobs = math .MaxInt
38+ listener .maxMetricsGlobbed = math .MaxInt
39+ listener .maxMetricsRendered = math .MaxInt
4040 listener .failOnMaxGlobs = true
4141
4242 start := time .Now ()
@@ -61,9 +61,9 @@ func newTrigramServer(files []string, l logf) *CarbonserverListener {
6161 listener .accessLogger = zap .NewNop ()
6262 listener .trigramIndex = true
6363 listener .whisperData = "./testdata"
64- listener .maxGlobs = math .MaxInt64
65- listener .maxMetricsGlobbed = math .MaxInt64
66- listener .maxMetricsRendered = math .MaxInt64
64+ listener .maxGlobs = math .MaxInt
65+ listener .maxMetricsGlobbed = math .MaxInt
66+ listener .maxMetricsRendered = math .MaxInt
6767 listener .failOnMaxGlobs = true
6868
6969 start := time .Now ()
@@ -832,7 +832,7 @@ func TestTrieConcurrentReadWrite(t *testing.T) {
832832 // case <-filec:
833833 default :
834834 // skipcq: GSC-G404
835- files , _ , _ , _ , err := trieIndex .query (fmt .Sprintf ("level-0-%d/level-1-%d/level-2-%d*" , rand .Intn (factor ), rand .Intn (factor ), rand .Intn (factor )), int ( math .MaxInt64 ) , nil )
835+ files , _ , _ , _ , err := trieIndex .query (fmt .Sprintf ("level-0-%d/level-1-%d/level-2-%d*" , rand .Intn (factor ), rand .Intn (factor ), rand .Intn (factor )), math .MaxInt , nil )
836836 if err != nil {
837837 panic (err )
838838 }
0 commit comments