Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauthamastro committed Jul 9, 2024
1 parent 9c10a72 commit 4011469
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions pallets/thea-message-handler/src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,7 @@ fn test_incoming_message_validator_change_payload() {
assert_ok!(TheaHandler::incoming_message(RuntimeOrigin::none(), signed_message.clone()));
assert_eq!(<ValidatorSetId<Test>>::get(), 1);
// Doesn't do any thing
assert_ok!(
TheaHandler::incoming_message(RuntimeOrigin::none(), signed_message_sv.clone()),);
assert_ok!(TheaHandler::incoming_message(RuntimeOrigin::none(), signed_message_sv.clone()),);
})
}

Expand Down
3 changes: 1 addition & 2 deletions pallets/thea/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ fn test_session_change() {
assert!(Thea::validator_set_id() == 0);
assert!(Thea::outgoing_nonce(1) == 0); // Thea validator session change message is not generated here on new change only when session actually changes


// Simulating the on_new_session to the first epoch of the next era.
Thea::on_new_session(false, queued.clone().into_iter(), queued.clone().into_iter());
assert!(Thea::validator_set_id() == 1);
Expand Down Expand Up @@ -317,11 +316,11 @@ fn test_report_misbehaviour_happy_path() {
assert_ok!(Thea::report_misbehaviour(RuntimeOrigin::signed(fisherman), network, 1));
})
}
use thea_primitives::types::NetworkType;
use frame_support::{
assert_noop,
traits::{fungible::MutateHold, tokens::Precision},
};
use thea_primitives::types::NetworkType;
use thea_primitives::types::{AssetMetadata, IncomingMessage, SignedMessage, THEA_HOLD_REASON};

#[test]
Expand Down

0 comments on commit 4011469

Please sign in to comment.