remove obsolete test

This commit is contained in:
Simon Cruanes 2026-02-12 21:23:22 -05:00
parent 69d1d512e3
commit 103886ec83
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

View file

@ -16,32 +16,7 @@ let test_config_printing () =
in
check' string ~msg:"is rendered correctly" ~actual ~expected
let test_overriding_stateful_config () =
let module Env = Config.Env () in
Env.set_headers [ "foo", "bar" ];
Env.set_debug true;
let headers = [ "changed", "header" ] in
let debug = false in
let config : Config.t =
Env.make (fun common () -> common) ~debug ~headers ()
in
check'
(list (pair string string))
~msg:"header is overriden" ~actual:(Env.get_headers ()) ~expected:headers;
check'
(list (pair string string))
~msg:"config and stateful headers are the same" ~actual:(Env.get_headers ())
~expected:config.headers;
check' bool ~msg:"debug is overriden" ~actual:(Env.get_debug ())
~expected:debug;
check' bool ~msg:"config and stateful debug are the same"
~actual:(Env.get_debug ()) ~expected:config.debug
let suite =
[
test_case "default config pretty printing" `Quick test_config_printing;
test_case "overriding default stateful values via make constructor" `Quick
test_overriding_stateful_config;
]
[ test_case "default config pretty printing" `Quick test_config_printing ]
let () = Alcotest.run "Opentelemetry_client" [ "Config", suite ]