From fe694b64b61153985f4519bfcbfd8a1589872bc1 Mon Sep 17 00:00:00 2001 From: Dennis Diatlov Date: Mon, 30 Sep 2024 12:33:17 +0100 Subject: [PATCH] build(template): bump up sails version to 0.6.0 (#559) --- templates/program/tests/gtest.rs | 14 +++++++++++--- templates/set-vars.rhai | 2 +- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/templates/program/tests/gtest.rs b/templates/program/tests/gtest.rs index 859300bd..0a22abc5 100644 --- a/templates/program/tests/gtest.rs +++ b/templates/program/tests/gtest.rs @@ -1,4 +1,4 @@ -use sails_rs::{calls::*, gtest::calls::*}; +use sails_rs::{calls::*, gtest::{calls::*, System}}; use {{ client_crate_name }}::traits::*; @@ -6,7 +6,11 @@ const ACTOR_ID: u64 = 42; #[tokio::test] async fn do_something_works() { - let remoting = GTestRemoting::new(ACTOR_ID.into()); + let system = System::new(); + system.init_logger(); + system.mint_to(ACTOR_ID, 100_000_000_000_000); + + let remoting = GTestRemoting::new(system, ACTOR_ID.into()); remoting.system().init_logger(); // Submit program code into the system @@ -33,7 +37,11 @@ async fn do_something_works() { #[tokio::test] async fn get_something_works() { - let remoting = GTestRemoting::new(ACTOR_ID.into()); + let system = System::new(); + system.init_logger(); + system.mint_to(ACTOR_ID, 100_000_000_000_000); + + let remoting = GTestRemoting::new(system, ACTOR_ID.into()); remoting.system().init_logger(); // Submit program code into the system diff --git a/templates/set-vars.rhai b/templates/set-vars.rhai index 7bb06076..f12e2b6b 100644 --- a/templates/set-vars.rhai +++ b/templates/set-vars.rhai @@ -32,7 +32,7 @@ variable::set("mocks-feature-name", "mocks"); // Set versions of used crates variable::set("mockall-version", "0.12"); -variable::set("sails-rs-version", "0.5.1"); +variable::set("sails-rs-version", "0.6.0"); variable::set("tokio-version", "1.40"); fn is_kebab_case(name) {