From 516cece8adcb124429cc7a7ee65afa5498847288 Mon Sep 17 00:00:00 2001 From: Shella Stephens Date: Tue, 10 Sep 2024 12:11:19 -0600 Subject: [PATCH] Fix tests --- .github/workflows/observatory.yml | 3 ++- src/datadog.rs | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/observatory.yml b/.github/workflows/observatory.yml index 404d6ae..71d34d5 100644 --- a/.github/workflows/observatory.yml +++ b/.github/workflows/observatory.yml @@ -27,4 +27,5 @@ jobs: - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.rust }} - - run: cargo build + - run: cargo test + diff --git a/src/datadog.rs b/src/datadog.rs index 035f463..5e3a5d0 100644 --- a/src/datadog.rs +++ b/src/datadog.rs @@ -180,8 +180,8 @@ pub async fn send_stream_event(value: &StreamEvent, dd_api_key: String) -> Resul #[cfg(test)] mod tests { use super::{send_event, send_stream_event, Event, StreamEvent}; - use crate::AlertType::Error; - use crate::Priority::Normal; + use super::AlertType::Error; + use super::Priority::Normal; use hostname; use std::collections::BTreeMap; use std::env;