Skip to content

Commit

Permalink
build(template): bump up sails version to 0.6.0 (#559)
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisInSky authored Sep 30, 2024
1 parent f9deb37 commit fe694b6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 11 additions & 3 deletions templates/program/tests/gtest.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
use sails_rs::{calls::*, gtest::calls::*};
use sails_rs::{calls::*, gtest::{calls::*, System}};

use {{ client_crate_name }}::traits::*;

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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion templates/set-vars.rhai
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fe694b6

Please sign in to comment.