mirror of
https://github.com/prometheus/prometheus.git
synced 2026-07-08 00:31:14 -04:00
Each test function creates its own mock AWS client and operates on independent data stores with no shared global state between them. Adding t.Parallel() to the 33 top-level test functions across the six test files (aws, ec2, ecs, elasticache, msk, rds) allows the Go test runner to overlap their execution, cutting wall-clock time. TestLoadRegion is excluded because its subtests use t.Setenv, which panics when a parallel ancestor is detected (Go 1.25+). Refs: #15185 Signed-off-by: Ogulcan Aydogan <ogulcanaydogan@hotmail.com> |
||
|---|---|---|
| .. | ||
| aws.go | ||
| aws_test.go | ||
| ec2.go | ||
| ec2_test.go | ||
| ecs.go | ||
| ecs_test.go | ||
| elasticache.go | ||
| elasticache_test.go | ||
| lightsail.go | ||
| metrics_aws.go | ||
| metrics_ec2.go | ||
| metrics_ecs.go | ||
| metrics_elasticache.go | ||
| metrics_lightsail.go | ||
| metrics_msk.go | ||
| metrics_rds.go | ||
| msk.go | ||
| msk_test.go | ||
| rds.go | ||
| rds_test.go | ||