mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-08 03:47:59 -04:00
remove obsolete test
This commit is contained in:
parent
69d1d512e3
commit
103886ec83
1 changed files with 1 additions and 26 deletions
|
|
@ -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 ]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue