File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ func TestSafeTargetAnalytics(t *testing.T) {
85
85
func TestSafeSeenTargets (t * testing.T ) {
86
86
// Initialize with a small maxSize for testing
87
87
maxSize := 3
88
- s := newSafeSeenTargets (maxSize , 0 ).(SafeSeenTargetsCache [string , bool ])
88
+ s := newSafeSeenTargets (maxSize ).(SafeSeenTargetsCache [string , bool ])
89
89
90
90
testData := map [string ]bool {
91
91
"target1" : true ,
@@ -135,7 +135,7 @@ func TestSafeSeenTargets(t *testing.T) {
135
135
concurrencyLevel := 100
136
136
137
137
// Re-initialize the map for concurrency testing
138
- s = newSafeSeenTargets (100 , 0 ).(SafeSeenTargetsCache [string , bool ])
138
+ s = newSafeSeenTargets (100 ).(SafeSeenTargetsCache [string , bool ])
139
139
140
140
// Concurrently set keys
141
141
for i := 0 ; i < concurrencyLevel ; i ++ {
@@ -177,7 +177,7 @@ func TestSafeSeenTargets(t *testing.T) {
177
177
// Add test for clearing based on interval
178
178
t .Run ("IntervalClearingTest" , func (t * testing.T ) {
179
179
// Re-initialize the map with a clearing interval
180
- s = newSafeSeenTargets (10 , 100 * time . Millisecond )
180
+ s = newSafeSeenTargets (10 )
181
181
182
182
for key , value := range testData {
183
183
s .set (key , value )
You can’t perform that action at this time.
0 commit comments