Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chris13524 committed Apr 16, 2024
1 parent b5f74d0 commit ff4b6a9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
rustc: stable
- name: "Clippy all features"
cmd: clippy
args: --all-features --tests -- -D warnings
args: --all-features --all-targets -- -D warnings
cache: {}
rustc: stable
- name: "Formatting"
Expand Down
4 changes: 2 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ devloop: unit fmt-imports
test := ""

test:
RUST_BACKTRACE=1 cargo test --lib --bins -- {{test}}
RUST_BACKTRACE=1 cargo test --all-targets -- {{test}}

test-all:
RUST_BACKTRACE=1 cargo test --all-features --lib --bins -- {{test}}
RUST_BACKTRACE=1 cargo test --all-features --all-targets -- {{test}}

clippy:
#!/bin/bash
Expand Down
6 changes: 1 addition & 5 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,10 @@ impl Config {
supported.push(ProviderKind::ApnsSandbox);
}

if self.fcm_api_key.is_some() {
if self.fcm_api_key.is_some() || self.fcm_v1_credentials.is_some() {
supported.push(ProviderKind::Fcm);
}

if self.fcm_v1_credentials.is_some() {
supported.push(ProviderKind::FcmV1);
}

// Only available in debug/testing
#[cfg(any(debug_assertions, test))]
supported.push(ProviderKind::Noop);
Expand Down
1 change: 1 addition & 0 deletions tests/functional/multitenant/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use {crate::context::EchoServerContext, serde::Serialize, test_context::test_con

mod apns;
mod fcm;
mod fcm_v1;
mod tenancy;

/// Struct to hold claims for JWT validation
Expand Down

0 comments on commit ff4b6a9

Please sign in to comment.