Skip to content

Commit bf818f6

Browse files
committed
chore: fmt
1 parent 03679ef commit bf818f6

File tree

5 files changed

+30
-32
lines changed

5 files changed

+30
-32
lines changed

test-integration/test-chainlink/tests/ix_03_deleg_after_sub.rs

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ async fn ixtest_deleg_after_subscribe_case2() {
2121
// 1. Initially the account does not exist
2222
{
2323
info!("1. Initially the account does not exist");
24-
let res = ctx.chainlink
25-
.ensure_accounts(&pubkeys, None, AccountFetchOrigin::GetAccount)
26-
.await
27-
.unwrap();
24+
let res = ctx
25+
.chainlink
26+
.ensure_accounts(&pubkeys, None, AccountFetchOrigin::GetAccount)
27+
.await
28+
.unwrap();
2829

2930
assert_not_found!(res, &pubkeys);
3031
assert_not_cloned!(ctx.cloner, &pubkeys);
@@ -37,9 +38,9 @@ async fn ixtest_deleg_after_subscribe_case2() {
3738
ctx.init_counter(&counter_auth).await;
3839

3940
ctx.chainlink
40-
.ensure_accounts(&pubkeys, None, AccountFetchOrigin::GetAccount)
41-
.await
42-
.unwrap();
41+
.ensure_accounts(&pubkeys, None, AccountFetchOrigin::GetAccount)
42+
.await
43+
.unwrap();
4344

4445
// Assert cloned account state matches the remote account and slot
4546
let account = ctx.cloner.get_account(&counter_pda).unwrap();
@@ -61,9 +62,9 @@ async fn ixtest_deleg_after_subscribe_case2() {
6162
let deleg_record_pubkey = ctx.delegation_record_pubkey(&counter_pda);
6263

6364
ctx.chainlink
64-
.ensure_accounts(&pubkeys, None, AccountFetchOrigin::GetAccount)
65-
.await
66-
.unwrap();
65+
.ensure_accounts(&pubkeys, None, AccountFetchOrigin::GetAccount)
66+
.await
67+
.unwrap();
6768

6869
let account = ctx.cloner.get_account(&counter_pda).unwrap();
6970
assert_cloned_as_delegated!(

test-integration/test-chainlink/tests/ix_06_redeleg_us_separate_slots.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ use log::*;
77
use magicblock_chainlink::{
88
assert_cloned_as_delegated_with_retries, assert_cloned_as_undelegated,
99
assert_not_subscribed, assert_subscribed_without_delegation_record,
10-
testing::init_logger,
11-
AccountFetchOrigin,
10+
testing::init_logger, AccountFetchOrigin,
1211
};
1312
use solana_sdk::{signature::Keypair, signer::Signer};
1413
use test_chainlink::{ixtest_context::IxtestContext, sleep_ms};
@@ -35,9 +34,9 @@ async fn ixtest_undelegate_redelegate_to_us_in_separate_slots() {
3534
info!("1. Account delegated to us");
3635

3736
ctx.chainlink
38-
.ensure_accounts(&pubkeys, None, AccountFetchOrigin::GetAccount)
39-
.await
40-
.unwrap();
37+
.ensure_accounts(&pubkeys, None, AccountFetchOrigin::GetAccount)
38+
.await
39+
.unwrap();
4140
sleep_ms(1_500).await;
4241

4342
// Account should be cloned as delegated

test-integration/test-chainlink/tests/ix_07_redeleg_us_same_slot.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ async fn ixtest_undelegate_redelegate_to_us_in_same_slot() {
3434
info!("1. Account delegated to us");
3535

3636
ctx.chainlink
37-
.ensure_accounts(&pubkeys, None, AccountFetchOrigin::GetAccount)
38-
.await
39-
.unwrap();
37+
.ensure_accounts(&pubkeys, None, AccountFetchOrigin::GetAccount)
38+
.await
39+
.unwrap();
4040
sleep_ms(1_500).await;
4141

4242
// Account should be cloned as delegated

test-integration/test-chainlink/tests/ix_full_scenarios.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ async fn ixtest_accounts_for_tx_2_delegated_3_readonly_3_programs_one_native() {
162162
// Initially the new_pubkey does not exist on chain so it will be returned as None
163163
{
164164
let (fetched_pubkeys, fetched_strs) = {
165-
let fetched_accounts =
166-
ctx.chainlink
165+
let fetched_accounts = ctx
166+
.chainlink
167167
.fetch_accounts(&all_pubkeys, AccountFetchOrigin::GetAccount)
168168
.await
169169
.unwrap();
@@ -210,8 +210,8 @@ async fn ixtest_accounts_for_tx_2_delegated_3_readonly_3_programs_one_native() {
210210
sleep_ms(500).await;
211211

212212
let (fetched_pubkeys, fetched_strs) = {
213-
let fetched_accounts =
214-
ctx.chainlink
213+
let fetched_accounts = ctx
214+
.chainlink
215215
.fetch_accounts(&all_pubkeys, AccountFetchOrigin::GetAccount)
216216
.await
217217
.unwrap();

test-integration/test-chainlink/tests/ix_remote_account_provider.rs

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,10 @@ async fn ixtest_get_existing_account_for_valid_slot() {
119119

120120
{
121121
// Fetching immediately does not return the account yet
122-
let remote_account =
123-
remote_account_provider
124-
.try_get(pubkey, AccountFetchOrigin::GetAccount)
125-
.await
126-
.unwrap();
122+
let remote_account = remote_account_provider
123+
.try_get(pubkey, AccountFetchOrigin::GetAccount)
124+
.await
125+
.unwrap();
127126
assert!(!remote_account.is_found());
128127
}
129128

@@ -139,11 +138,10 @@ async fn ixtest_get_existing_account_for_valid_slot() {
139138
{
140139
// After waiting for a bit the subscription update came in
141140
let cs = current_slot(rpc_client).await;
142-
let remote_account =
143-
remote_account_provider
144-
.try_get(pubkey, AccountFetchOrigin::GetAccount)
145-
.await
146-
.unwrap();
141+
let remote_account = remote_account_provider
142+
.try_get(pubkey, AccountFetchOrigin::GetAccount)
143+
.await
144+
.unwrap();
147145
assert!(remote_account.is_found());
148146
assert!(remote_account.slot() >= cs);
149147
assert_eq!(remote_account.fresh_lamports().unwrap(), 2_000_000);

0 commit comments

Comments
 (0)