Skip to content

Commit 4ff0f59

Browse files
committed
test: Improve pkg/exporters/http test coverage from 75.6% to 88.3%
Add comprehensive tests for HTTP exporter functionality including: - IsReloadable and Reload methods with various config scenarios - needsWorkerPoolRecreation logic for detecting config changes - performHealthCheck for webhook health monitoring - min helper function edge cases Create new stats_test.go with tests for all stats functions: - RecordDroppedRequest and RecordRetryAttempt tracking - GetTotalFailures, GetStatusSuccessRate, GetProblemSuccessRate - WebhookStatsSnapshot GetSuccessRate and IsHealthy methods - recordRequest with response time averaging - Thread-safe concurrent access validation TaskForge: #3831
1 parent 2a2f478 commit 4ff0f59

File tree

2 files changed

+979
-0
lines changed

2 files changed

+979
-0
lines changed

0 commit comments

Comments
 (0)