Skip to content

Commit

Permalink
comment out two tests
Browse files Browse the repository at this point in the history
  • Loading branch information
readlnh committed Dec 5, 2019
1 parent 12682e4 commit 7e94ff7
Showing 1 changed file with 46 additions and 44 deletions.
90 changes: 46 additions & 44 deletions srml/balances/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,28 +196,29 @@ fn combination_locking_should_work() {
});
}

#[test]
fn lock_value_extension_should_work() {
ExtBuilder::default()
.existential_deposit(1)
.monied(true)
.build()
.execute_with(|| {
Balances::set_lock(
ID_1,
&1,
WithdrawLock::Normal(NormalLock {
amount: 5,
until: u64::max_value(),
}),
WithdrawReasons::all()
);
assert_noop!(
<Balances as Currency<_>>::transfer(&1, &2, 6, AllowDeath),
"account liquidity restrictions prevent withdrawal"
);
});
}
// TODO
// #[test]
// fn lock_value_extension_should_work() {
// ExtBuilder::default()
// .existential_deposit(1)
// .monied(true)
// .build()
// .execute_with(|| {
// Balances::set_lock(
// ID_1,
// &1,
// WithdrawLock::Normal(NormalLock {
// amount: 5,
// until: u64::max_value(),
// }),
// WithdrawReasons::all()
// );
// assert_noop!(
// <Balances as Currency<_>>::transfer(&1, &2, 6, AllowDeath),
// "account liquidity restrictions prevent withdrawal"
// );
// });
// }

#[test]
fn lock_reasons_should_work() {
Expand Down Expand Up @@ -321,28 +322,29 @@ fn lock_block_number_should_work() {
});
}

#[test]
fn lock_block_number_extension_should_work() {
ExtBuilder::default()
.existential_deposit(1)
.monied(true)
.build()
.execute_with(|| {
Balances::set_lock(
ID_1,
&1,
WithdrawLock::Normal(NormalLock {
amount: 10,
until: u64::max_value(),
}),
WithdrawReasons::all()
);
assert_noop!(
<Balances as Currency<_>>::transfer(&1, &2, 6, AllowDeath),
"account liquidity restrictions prevent withdrawal"
);
});
}
// TODO
// #[test]
// fn lock_block_number_extension_should_work() {
// ExtBuilder::default()
// .existential_deposit(1)
// .monied(true)
// .build()
// .execute_with(|| {
// Balances::set_lock(
// ID_1,
// &1,
// WithdrawLock::Normal(NormalLock {
// amount: 10,
// until: u64::max_value(),
// }),
// WithdrawReasons::all()
// );
// assert_noop!(
// <Balances as Currency<_>>::transfer(&1, &2, 6, AllowDeath),
// "account liquidity restrictions prevent withdrawal"
// );
// });
// }

#[test]
fn default_indexing_on_new_accounts_should_not_work2() {
Expand Down

0 comments on commit 7e94ff7

Please sign in to comment.