Skip to content

Commit 32e0370

Browse files
committed
Fix CI for Windows
1 parent e699233 commit 32e0370

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

opentelemetry-prometheus/tests/integration_test.rs

+2
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,7 @@ fn gather_and_compare(registry: prometheus::Registry, expected: String, name: &'
406406
let metric_families = registry.gather();
407407
encoder.encode(&metric_families, &mut output).unwrap();
408408

409+
let expected = get_platform_specific_string(expected);
409410
let output_string = get_platform_specific_string(String::from_utf8(output).unwrap());
410411

411412
assert_eq!(output_string, expected, "{name}");
@@ -812,6 +813,7 @@ fn duplicate_metrics() {
812813
.expected_files
813814
.into_iter()
814815
.map(|f| fs::read_to_string(Path::new("./tests/data").join(f)).expect(f))
816+
.map(get_platform_specific_string)
815817
.collect();
816818
gather_and_compare_multi(registry, possible_matches, tc.name);
817819
}

opentelemetry-proto/tests/grpc_build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const TONIC_INCLUDES: &[&str] = &["src/proto/opentelemetry-proto", "src/proto"];
1818

1919
#[test]
2020
fn build_tonic() {
21-
let before_build = build_content_map(TONIC_OUT_DIR, false);
21+
let before_build = build_content_map(TONIC_OUT_DIR, true);
2222

2323
let out_dir = TempDir::new().expect("failed to create temp dir to store the generated files");
2424

0 commit comments

Comments
 (0)