From d9676447b92de4d70cde5ddac031fafbcc59b0ba Mon Sep 17 00:00:00 2001 From: Cameron Fairchild Date: Thu, 13 Jun 2024 21:52:05 -0400 Subject: [PATCH] add extra assert to test --- pallets/subtensor/tests/senate.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pallets/subtensor/tests/senate.rs b/pallets/subtensor/tests/senate.rs index 05fdfef45..e30b78086 100644 --- a/pallets/subtensor/tests/senate.rs +++ b/pallets/subtensor/tests/senate.rs @@ -486,7 +486,10 @@ fn test_senate_leave_vote_removal() { assert!( SubtensorModule::get_uid_for_net_and_hotkey(root_netuid, &hotkey_account_id).is_err() ); + // No longer a member of the senate + assert!(!Senate::is_member(&hotkey_account_id)); assert_eq!( + // Vote is removed Triumvirate::has_voted(hash, 0, &hotkey_account_id), Ok(false) );