diff --git a/marine-examples/greeting/Cargo.toml b/marine-examples/greeting/Cargo.toml index d14b3ef..8d3e5f1 100644 --- a/marine-examples/greeting/Cargo.toml +++ b/marine-examples/greeting/Cargo.toml @@ -15,4 +15,4 @@ path = "src/main.rs" marine-rs-sdk = "0.6.11" [dev-dependencies] -marine-rs-sdk-test = "0.1.10" +marine-rs-sdk-test = "0.2.0" diff --git a/marine-examples/greeting/src/main.rs b/marine-examples/greeting/src/main.rs index b2facba..820a5e3 100644 --- a/marine-examples/greeting/src/main.rs +++ b/marine-examples/greeting/src/main.rs @@ -31,13 +31,13 @@ mod tests { use marine_rs_sdk_test::marine_test; #[marine_test(config_path = "../Config.toml", modules_dir = "../artifacts")] - fn empty_string() { + fn empty_string(greeting: marine_test_env::greeting::ModuleInterface) { let actual = greeting.greeting(String::new()); assert_eq!(actual, "Hi, "); } #[marine_test(config_path = "../Config.toml", modules_dir = "../artifacts")] - fn non_empty_string() { + fn non_empty_string(greeting: marine_test_env::greeting::ModuleInterface) { let actual = greeting.greeting("name".to_string()); assert_eq!(actual, "Hi, name"); }