Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ekovalev committed May 24, 2024
1 parent ea3ac7c commit 84c4177
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gcli/tests/cmd/claim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ use crate::common::{
use gsdk::Api;

const REWARD_PER_BLOCK: u128 = 18_000; // 3_000 gas * 6 value per gas
const ED: u128 = 1_000_000_000_000; // 1 unit of value

#[tokio::test]
async fn test_command_claim_works() -> Result<()> {
// hack to check initial alice balance
let (initial_balance, initial_stash, rent_pool_initial) = {
let (mut initial_balance, initial_stash, rent_pool_initial) = {
let node = common::dev()?;

// Get balance of the testing address
Expand All @@ -50,7 +51,9 @@ async fn test_command_claim_works() -> Result<()> {
)
};

// This will entail the ED payment to create program's account
let node = common::create_messager().await?;
initial_balance -= ED;

// Check the mailbox of the testing account
let signer = Api::new(Some(&node.ws()))
Expand Down

0 comments on commit 84c4177

Please sign in to comment.