mirror of
https://github.com/katanemo/plano.git
synced 2026-05-27 14:17:15 +02:00
fix int and unit tests
This commit is contained in:
parent
0e04b09f56
commit
db202578d3
3 changed files with 3 additions and 3 deletions
|
|
@ -17,7 +17,7 @@ use std::collections::HashMap;
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
|
|
||||||
fn wasm_module() -> String {
|
fn wasm_module() -> String {
|
||||||
let wasm_file = Path::new("target/wasm32-wasi/release/intelligent_prompt_gateway.wasm");
|
let wasm_file = Path::new("target/wasm32-wasi/release/llm_gateway.wasm");
|
||||||
assert!(
|
assert!(
|
||||||
wasm_file.exists(),
|
wasm_file.exists(),
|
||||||
"Run `cargo build --release --target=wasm32-wasi` first"
|
"Run `cargo build --release --target=wasm32-wasi` first"
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ use std::collections::HashMap;
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
|
|
||||||
fn wasm_module() -> String {
|
fn wasm_module() -> String {
|
||||||
let wasm_file = Path::new("target/wasm32-wasi/release/intelligent_prompt_gateway.wasm");
|
let wasm_file = Path::new("target/wasm32-wasi/release/prompt_gateway.wasm");
|
||||||
assert!(
|
assert!(
|
||||||
wasm_file.exists(),
|
wasm_file.exists(),
|
||||||
"Run `cargo build --release --target=wasm32-wasi` first"
|
"Run `cargo build --release --target=wasm32-wasi` first"
|
||||||
|
|
|
||||||
|
|
@ -226,7 +226,7 @@ mod test {
|
||||||
#[test]
|
#[test]
|
||||||
fn test_deserialize_configuration() {
|
fn test_deserialize_configuration() {
|
||||||
let ref_config =
|
let ref_config =
|
||||||
fs::read_to_string("../docs/source/resources/includes/arch_config_full_reference.yaml")
|
fs::read_to_string("../../docs/source/resources/includes/arch_config_full_reference.yaml")
|
||||||
.expect("reference config file not found");
|
.expect("reference config file not found");
|
||||||
|
|
||||||
let config: super::Configuration = serde_yaml::from_str(&ref_config).unwrap();
|
let config: super::Configuration = serde_yaml::from_str(&ref_config).unwrap();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue