@@ -163,7 +163,7 @@ async fn test_change_super_owners_by_super_owner() -> anyhow::Result<()> {
163163 ExecutionStateActor :: new ( & mut view, & mut txn_tracker, & mut controller)
164164 . execute_operation ( context, Operation :: system ( operation) )
165165 . await ?;
166- let new_ownership = view. system . ownership . get ( ) ;
166+ let new_ownership = view. system . ownership . get ( ) . await ? ;
167167 assert ! ( new_ownership. super_owners. contains( & new_super_owner) ) ;
168168 assert ! ( !new_ownership. super_owners. contains( & super_owner) ) ;
169169 assert_eq ! (
@@ -346,7 +346,7 @@ async fn test_change_owners_preserves_super_owners() -> anyhow::Result<()> {
346346 ExecutionStateActor :: new ( & mut view, & mut txn_tracker, & mut controller)
347347 . execute_operation ( context, Operation :: system ( operation) )
348348 . await ?;
349- let new_ownership = view. system . ownership . get ( ) ;
349+ let new_ownership = view. system . ownership . get ( ) . await ? ;
350350 // Super owners are preserved by ChangeOwners.
351351 assert ! ( new_ownership. super_owners. contains( & super_owner) ) ;
352352 // Regular owners were changed.
@@ -555,7 +555,10 @@ async fn test_change_application_permissions_by_super_owner() -> anyhow::Result<
555555 ExecutionStateActor :: new ( & mut view, & mut txn_tracker, & mut controller)
556556 . execute_operation ( context, Operation :: system ( operation) )
557557 . await ?;
558- assert_eq ! ( view. system. application_permissions. get( ) , & new_permissions) ;
558+ assert_eq ! (
559+ view. system. application_permissions. get( ) . await ?,
560+ & new_permissions
561+ ) ;
559562 Ok ( ( ) )
560563}
561564
@@ -605,7 +608,7 @@ async fn test_change_application_permissions_by_regular_owner_fails() -> anyhow:
605608 ) ) ;
606609 // Permissions should be unchanged.
607610 assert_eq ! (
608- view. system. application_permissions. get( ) ,
611+ view. system. application_permissions. get( ) . await ? ,
609612 & initial_permissions
610613 ) ;
611614 Ok ( ( ) )
0 commit comments