Skip to content

Commit

Permalink
test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgerring committed Dec 16, 2024
1 parent 8584650 commit 4a59154
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
14 changes: 6 additions & 8 deletions opentelemetry-otlp/tests/integration_test/tests/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,9 @@ async fn init_metrics() -> SdkMeterProvider {
.with_timeout(Duration::from_secs(1))
.build();

let resource = Resource::new(vec![KeyValue::new(
opentelemetry_semantic_conventions::resource::SERVICE_NAME,
"metrics-integration-test",
)]);
let resource = Resource::builder_empty()
.with_service_name("metrics-integration-test")
.build();

let meter_provider = MeterProviderBuilder::default()
.with_resource(resource)
Expand Down Expand Up @@ -284,10 +283,9 @@ mod tests {
.with_interval(Duration::from_millis(100))
.with_timeout(Duration::from_secs(1))
.build();
let resource = Resource::new(vec![KeyValue::new(
opentelemetry_semantic_conventions::resource::SERVICE_NAME,
"metrics-integration-test",
)]);
let resource = Resource::builder_empty()
.with_service_name("metrics-integration-test")
.build();
let meter_provider = MeterProviderBuilder::default()
.with_resource(resource)
.with_reader(reader)
Expand Down
4 changes: 0 additions & 4 deletions scripts/integration_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ TEST_DIR="./opentelemetry-otlp/tests/integration_test/tests"
if [ -d "$TEST_DIR" ]; then
cd "$TEST_DIR"

# Debug
cargo tree
cat /home/runner/work/opentelemetry-rust/opentelemetry-rust/opentelemetry-sdk/src/resource/mod.rs

# Run tests with the grpc-tonic feature
cargo test --no-default-features --features "tonic-client"

Expand Down

0 comments on commit 4a59154

Please sign in to comment.