diff options
author | Jay Doane <jaydoane@apache.org> | 2022-10-15 17:23:51 -0700 |
---|---|---|
committer | Jay Doane <jay.s.doane@gmail.com> | 2022-10-17 12:53:36 -0700 |
commit | e2d88138b0455898a594b1e45b2bdf3a74533203 (patch) | |
tree | 068f6b38ed81faf79f4aef6227b761b95c80cfdd | |
parent | 15ec5dcac9fc6d21b1efc691cf69488592dc5180 (diff) | |
download | couchdb-e2d88138b0455898a594b1e45b2bdf3a74533203.tar.gz |
Make test prometheus port explicit
These tests currently pass without this config parameter being set
because it gets that configuration from a test template. However, this
is fragile, and it's better practice to keep everything in one place.
This makes the configuration explicit.
-rw-r--r-- | src/couch_prometheus/test/eunit/couch_prometheus_e2e_tests.erl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/couch_prometheus/test/eunit/couch_prometheus_e2e_tests.erl b/src/couch_prometheus/test/eunit/couch_prometheus_e2e_tests.erl index 160c1bea7..027402b51 100644 --- a/src/couch_prometheus/test/eunit/couch_prometheus_e2e_tests.erl +++ b/src/couch_prometheus/test/eunit/couch_prometheus_e2e_tests.erl @@ -81,6 +81,7 @@ setup_prometheus(WithAdditionalPort) -> WithAdditionalPort, Persist ), + ok = config:set("prometheus", "port", ?PROM_PORT, Persist), % It's already started by default, so restart to pick up config ok = application:stop(couch_prometheus), ok = application:start(couch_prometheus), |