1
0
mirror of https://github.com/redis/go-redis.git synced 2025-12-02 06:22:31 +03:00
This commit is contained in:
Nedyalko Dyakov
2025-10-31 13:04:46 +02:00
parent 9eaeea1347
commit f672885808
12 changed files with 509 additions and 529 deletions

View File

@@ -16,7 +16,7 @@ func TestAutoPipelineSequential(t *testing.T) {
Addr: ":6379",
AutoPipelineConfig: &redis.AutoPipelineConfig{
MaxBatchSize: 10,
FlushInterval: 50 * time.Millisecond,
MaxFlushDelay: 50 * time.Millisecond,
MaxConcurrentBatches: 5,
},
})
@@ -64,7 +64,7 @@ func TestAutoPipelineSequentialSmallBatches(t *testing.T) {
Addr: ":6379",
AutoPipelineConfig: &redis.AutoPipelineConfig{
MaxBatchSize: 1000, // Large batch size
FlushInterval: 20 * time.Millisecond, // Rely on timer
MaxFlushDelay: 20 * time.Millisecond, // Rely on timer
MaxConcurrentBatches: 5,
},
})
@@ -111,7 +111,7 @@ func TestAutoPipelineSequentialMixed(t *testing.T) {
Addr: ":6379",
AutoPipelineConfig: &redis.AutoPipelineConfig{
MaxBatchSize: 5,
FlushInterval: 50 * time.Millisecond,
MaxFlushDelay: 50 * time.Millisecond,
MaxConcurrentBatches: 5,
},
})