Skip to content

Commit 95f842a

Browse files
committed
wip: otel flaky tests
Signed-off-by: José Guilherme Vanz <jguilhermevanz@suse.com>
1 parent ec6dd0a commit 95f842a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/integration_test.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ async fn test_otel() {
952952
let exponential_backoff = ExponentialBuilder::default()
953953
.with_min_delay(Duration::from_secs(10))
954954
.with_max_delay(Duration::from_secs(30))
955-
.with_max_times(10);
955+
.with_max_times(5);
956956

957957
let metrics_output_json =
958958
(|| async { parse_exporter_output(metrics_output_file.as_file()).await })
@@ -979,6 +979,7 @@ async fn test_otel() {
979979
"metrics_output_json: {}",
980980
serde_json::to_string_pretty(&metrics_output_json).unwrap()
981981
);
982+
println!("metrics check");
982983

983984
let traces_output_json =
984985
(|| async { parse_exporter_output(traces_output_file.as_file()).await })
@@ -987,6 +988,7 @@ async fn test_otel() {
987988
.unwrap();
988989
let spans = &traces_output_json["resourceSpans"][0]["scopeSpans"][0];
989990
assert_eq!(spans["scope"]["name"], "kubewarden-policy-server");
991+
println!("traces check");
990992

991993
otelc.stop().await.unwrap();
992994
}
@@ -1002,6 +1004,7 @@ async fn parse_exporter_output(
10021004
.read_line(&mut exporter_output)
10031005
.expect("failed to read exporter output");
10041006

1007+
println!("exporter_output_json: {}", exporter_output.clone());
10051008
serde_json::from_str(&exporter_output)
10061009
}
10071010

0 commit comments

Comments
 (0)