diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 5838557..5b10f75 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -41,8 +41,12 @@ jobs: rustup default nightly - name: Run Tests + env: + RUST_TEST_TIME_UNIT: 60000,120000 + RUST_TEST_TIME_INTEGRATION: 60000,120000 + RUST_TEST_TIME_DOCTEST: 60000,120000 run: | - cargo test --workspace --all-targets --all-features + cargo test --workspace --all-targets --all-features -- --ensure-time --report-time -Z unstable-options check_format: name: check (format) @@ -111,5 +115,5 @@ jobs: - name: Check lint env: - RUSTDOCFLAGS: -D warnings + RUSTDOCFLAGS: -D warnings run: cargo doc --workspace --all-features diff --git a/memphis/src/memphis_client.rs b/memphis/src/memphis_client.rs index e93fc55..b5e6b07 100644 --- a/memphis/src/memphis_client.rs +++ b/memphis/src/memphis_client.rs @@ -93,7 +93,13 @@ impl MemphisClient { } } - pub async fn send_notification(&self, notification_type: MemphisNotificationType, title: &str, message: &str, code: &str) -> Result<(), RequestError> { + pub(crate) async fn send_notification( + &self, + notification_type: MemphisNotificationType, + title: &str, + message: &str, + code: &str, + ) -> Result<(), RequestError> { let req = NotificationRequest { title, msg: message,