prometheus/config
Danial Eskandari e7ef1c0d9a
config: set gogc default value when config body is empty (#16052)
* fix: set gogc default value when config body is empty

Signed-off-by: Danial Eskandari <doneskandari@gmail.com>

* refactor: explicitly check value 75 in `TestGoGCDefaultValueOnEmptyConfigBody`

add GoGC assertion in `TestEmptyConfig`, also removed the no longer needed runtime config assignment in `TestEmptyGlobalBlock`

Signed-off-by: Danial Eskandari <doneskandari@gmail.com>

* refactor: remove `TestGoGCDefaultValueOnEmptyConfigBody` to reduce duplicate assertions

Signed-off-by: Danial Eskandari <doneskandari@gmail.com>

---------

Signed-off-by: Danial Eskandari <doneskandari@gmail.com>
Signed-off-by: machine424 <ayoubmrini424@gmail.com>
2025-03-05 15:44:54 +01:00
..
testdata Add configuration option for GOGC 2024-06-05 15:23:16 +02:00
config.go config: set gogc default value when config body is empty (#16052) 2025-03-05 15:44:54 +01:00
config_default_test.go Add configuration option for GOGC 2024-06-05 15:23:16 +02:00
config_test.go config: set gogc default value when config body is empty (#16052) 2025-03-05 15:44:54 +01:00
config_windows_test.go Add configuration option for GOGC 2024-06-05 15:23:16 +02:00