Skip to content

Commit

Permalink
fix: test doesn't find the folio content by default
Browse files Browse the repository at this point in the history
  • Loading branch information
batleforc committed Aug 15, 2024
1 parent 9a89c96 commit 95273a6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions apps/back/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,16 @@ async fn main() -> std::io::Result<()> {
stop_tracing(config.clone().tracing, config.get_name());
Ok(())
}

#[cfg(test)]
mod tests {
use std::env;

use super::*;

#[test]
fn test_main() {
env::set_var("CONFIG_PATH", "../../test_dataset/content/config.yaml");
main().unwrap();
}
}

0 comments on commit 95273a6

Please sign in to comment.