Skip to content

Commit d55c2d5

Browse files
authored
test: fix test constants (#127)
These broke in a recent merge, see e.g. CI for #126
1 parent 910a5cd commit d55c2d5

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

.github/workflows/integration.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
--locked \
3939
--workspace \
4040
-E 'kind(test)' \
41+
--no-tests=warn \
4142
--no-capture
4243
4344
integration-success:

crates/e2e-tests/src/tests.rs

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ static SEQUENCER_RPC: LazyLock<Url> = LazyLock::new(|| {
3030
});
3131

3232
/// Test account private key
33-
const TEST_PRIVATE_KEY: &str = "59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d";
33+
const TEST_PRIVATE_KEY: B256 =
34+
b256!("59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d");
3435

3536
/// Default delegation address for testing
3637
const DEFAULT_DELEGATION_ADDRESS: &str = "0x90f79bf6eb2c4f870365e785982e1f101e93b906";
@@ -43,12 +44,12 @@ async fn assert_chain_advances() -> Result<(), Box<dyn std::error::Error>> {
4344
}
4445

4546
let provider = ProviderBuilder::new().on_http(SEQUENCER_RPC.clone());
46-
47+
4748
let initial_block = provider.get_block_number().await?;
48-
49+
4950
// Wait for new block
5051
tokio::time::sleep(std::time::Duration::from_secs(5)).await;
51-
52+
5253
let new_block = provider.get_block_number().await?;
5354

5455
assert!(
@@ -67,10 +68,11 @@ async fn test_wallet_api() -> Result<(), Box<dyn std::error::Error>> {
6768
}
6869

6970
let provider = ProviderBuilder::new().on_http(REPLICA_RPC.clone());
70-
let signer = PrivateKeySigner::from_bytes(&b256!(TEST_PRIVATE_KEY))?;
71+
let signer = PrivateKeySigner::from_bytes(&TEST_PRIVATE_KEY)?;
7172

7273
let delegation_address = Address::from_str(
73-
&std::env::var("DELEGATION_ADDRESS").unwrap_or_else(|_| DEFAULT_DELEGATION_ADDRESS.to_string()),
74+
&std::env::var("DELEGATION_ADDRESS")
75+
.unwrap_or_else(|_| DEFAULT_DELEGATION_ADDRESS.to_string()),
7476
)?;
7577

7678
// Create and sign authorization
@@ -84,16 +86,13 @@ async fn test_wallet_api() -> Result<(), Box<dyn std::error::Error>> {
8486
let auth = auth.into_signed(signature);
8587

8688
// Prepare and send transaction
87-
let tx = TransactionRequest::default()
88-
.with_authorization_list(vec![auth])
89-
.with_to(signer.address());
89+
let tx =
90+
TransactionRequest::default().with_authorization_list(vec![auth]).with_to(signer.address());
9091

9192
let tx_hash: B256 = provider.client().request("wallet_sendTransaction", vec![tx]).await?;
9293

9394
// Wait for and verify transaction receipt
94-
let receipt = PendingTransactionBuilder::new(provider.clone(), tx_hash)
95-
.get_receipt()
96-
.await?;
95+
let receipt = PendingTransactionBuilder::new(provider.clone(), tx_hash).get_receipt().await?;
9796

9897
assert!(receipt.status(), "Transaction failed");
9998
assert!(!provider.get_code_at(signer.address()).await?.is_empty(), "No code at signer address");
@@ -150,7 +149,7 @@ async fn test_withdrawal_proof_with_fallback() -> Result<(), Box<dyn std::error:
150149
}
151150

152151
let provider = ProviderBuilder::new().on_http(REPLICA_RPC.clone());
153-
152+
154153
// Get latest block for proof verification
155154
let block: Block = provider
156155
.client()

0 commit comments

Comments
 (0)