Skip to content

Commit

Permalink
fix: revert unneeded test
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Orris committed Feb 2, 2024
1 parent d5698e6 commit 3eb3dca
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions pallets/time-release/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
use super::*;
use chrono::{DateTime, Days, Duration, TimeZone, Utc};
use frame_support::{
assert_err, assert_noop, assert_ok, error::BadOrigin, traits::{
assert_noop, assert_ok,
error::BadOrigin,
traits::{
fungible::{Inspect, InspectFreeze},
tokens::{Fortitude, WithdrawConsequence},
}
},
};
use mock::*;
use sp_runtime::{traits::Dispatchable, SaturatedConversion, TokenError};
Expand Down Expand Up @@ -74,23 +76,6 @@ fn transfer_works() {
}));
});
}
#[test]
fn transfer_to_zero_balance_account_does_not_work() {
ExtBuilder::build().execute_with(|| {
System::set_block_number(1);

let schedule =
ReleaseSchedule { start: 0u32, period: 10u32, period_count: 1u32, per_period: 100u64 };
assert_err!(TimeRelease::transfer(RuntimeOrigin::signed(ALICE), EVE, schedule.clone()), TokenError::FundsUnavailable);
assert_eq!(TimeRelease::release_schedules(&EVE), vec![schedule.clone()]);
System::assert_last_event(RuntimeEvent::TimeRelease(crate::Event::ReleaseScheduleAdded {
from: ALICE,
to: EVE,
release_schedule: schedule,
}));
});
}


#[test]
fn self_releasing() {
Expand Down

0 comments on commit 3eb3dca

Please sign in to comment.