Reduce Kafka publish latency for messages
This commit is contained in:
@@ -30,6 +30,17 @@ func TestKafkaTopicsKeepOnlyMessageInternalAsyncTopics(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestNormalizeKafkaConfigUsesLowLatencyBatchTimeout(t *testing.T) {
|
||||
cfg := kafkaConfig{}
|
||||
normalizeKafkaConfig(&cfg)
|
||||
if cfg.BatchTimeoutMS != 10 {
|
||||
t.Fatalf("unexpected kafka batch timeout: %d", cfg.BatchTimeoutMS)
|
||||
}
|
||||
if cfg.MaxRetryCount != 3 {
|
||||
t.Fatalf("unexpected kafka max retry count: %d", cfg.MaxRetryCount)
|
||||
}
|
||||
}
|
||||
|
||||
func TestEnqueueKafkaAuditEventPublishesCrossSystemEvent(t *testing.T) {
|
||||
oldKafkaBus := kafkaBus
|
||||
oldPublisher := publishKafkaAuditEventEnvelope
|
||||
|
||||
Reference in New Issue
Block a user