Skip to content

Commit

Permalink
- fix: non working tests
Browse files Browse the repository at this point in the history
  • Loading branch information
agallardol committed Dec 18, 2024
1 parent 13a8752 commit c8b2ea4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libs/shinkai-tools-runner/src/lib.test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,10 @@ async fn shinkai_tool_playwright_example(#[case] runner_type: RunnerType) {
eprintln!("Skipping test on Windows - Playwright not supported in Deno on Windows");
return;
}
if matches!(runner_type, RunnerType::Host) && std::env::var("CI").is_ok() {
eprintln!("Skipping test in CI host environment");
return;
}
let _ = env_logger::builder()
.filter_level(log::LevelFilter::Info)
.is_test(true)
Expand Down Expand Up @@ -745,6 +749,10 @@ async fn shinkai_tool_perplexity(#[case] runner_type: RunnerType) {
.filter_level(log::LevelFilter::Info)
.is_test(true)
.try_init();
if std::env::var("CI").is_ok() {
eprintln!("Skipping test in CI environment");
return;
}
let tool_definition = get_tool("shinkai-tool-perplexity").unwrap();
let code_files = CodeFiles {
files: HashMap::from([("main.ts".to_string(), tool_definition.code.clone().unwrap())]),
Expand Down

0 comments on commit c8b2ea4

Please sign in to comment.