fix: skip 2930 tests in legacy mode / skip aws test if no id (#386)

* fix: skip 2930 tests in legacy mode

* test: skip aws signer test if no key id is set
This commit is contained in:
Georgios Konstantopoulos 2021-08-17 15:42:08 +03:00 committed by GitHub
parent f78edfeabb
commit 7d9dfcb53c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -127,6 +127,7 @@ mod tests {
} }
#[test] #[test]
#[cfg_attr(feature = "legacy", ignore)]
fn serde_eip2930_tx() { fn serde_eip2930_tx() {
let access_list = vec![AccessListItem { let access_list = vec![AccessListItem {
address: Address::zero(), address: Address::zero(),

View File

@ -301,7 +301,10 @@ mod tests {
#[tokio::test] #[tokio::test]
async fn it_signs_messages() { async fn it_signs_messages() {
let chain_id = 1; let chain_id = 1;
let key_id = std::env::var("AWS_KEY_ID").expect("no key id"); let key_id = match std::env::var("AWS_KEY_ID") {
Ok(id) => id,
_ => return,
};
setup_tracing(); setup_tracing();
let client = env_client(); let client = env_client();
let signer = AwsSigner::new(&client, key_id, chain_id).await.unwrap(); let signer = AwsSigner::new(&client, key_id, chain_id).await.unwrap();