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:
parent
f78edfeabb
commit
7d9dfcb53c
|
@ -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(),
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue