Skip to content

Commit

Permalink
fix(test): Minor issues/leftovers
Browse files Browse the repository at this point in the history
  • Loading branch information
KirilMihaylov authored and Gancho Manev committed May 25, 2023
1 parent 03e3fe5 commit b24ba54
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/src/oracle_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ enum SuccessOrFail {

impl SuccessOrFail {
pub fn should_fail(&self) -> bool {
matches!(self, Self::Switching { should_fail } | Self::Const { should_fail } if should_fail)
matches!(self, Self::Switching { should_fail } | Self::Const { should_fail } if *should_fail)
}

pub fn switch(self) -> Self {
Expand Down Expand Up @@ -592,7 +592,7 @@ fn price_alarm_rescheduling() {

let dummy_code = test_case
.app
.store_code(dummy_contract::<2, 1>(execute_success::<false, 2, 1>));
.store_code(dummy_contract::<2, 1>(execute::<false, 2, 1>));

instantiate_dummy_contract(
&mut test_case.app,
Expand All @@ -603,7 +603,7 @@ fn price_alarm_rescheduling() {

let dummy_code = test_case
.app
.store_code(dummy_contract::<2, 1>(execute_success::<true, 3, 1>));
.store_code(dummy_contract::<2, 1>(execute::<true, 3, 1>));

instantiate_dummy_contract(
&mut test_case.app,
Expand Down Expand Up @@ -703,7 +703,7 @@ fn price_alarm_rescheduling_with_failing() {

let dummy_code = test_case
.app
.store_code(dummy_contract::<2, 1>(execute_success::<false, 2, 1>));
.store_code(dummy_contract::<2, 1>(execute::<false, 2, 1>));

instantiate_dummy_contract(
&mut test_case.app,
Expand All @@ -714,7 +714,7 @@ fn price_alarm_rescheduling_with_failing() {

let dummy_code = test_case
.app
.store_code(dummy_contract::<2, 1>(execute_fail_success::<false, 3, 1>));
.store_code(dummy_contract::<2, 1>(execute::<false, 3, 1>));

instantiate_dummy_contract(
&mut test_case.app,
Expand Down

0 comments on commit b24ba54

Please sign in to comment.