Skip to content

Commit de3874d

Browse files
committed
fix: Format and ignore flaky tests
Signed-off-by: gsstoykov <[email protected]>
1 parent 5b274ff commit de3874d

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

tests/e2e/batch_transaction.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
use std::str::FromStr;
2+
23
use hedera::{
34
AccountCreateTransaction,
5+
AccountId,
46
BatchTransaction,
57
Hbar,
68
PrivateKey,
@@ -18,16 +20,15 @@ async fn can_execute_batch_transaction() -> anyhow::Result<()> {
1820
};
1921

2022
// Given
23+
let operator_id = AccountId::new(0, 0, 2);
2124
let operator_key = PrivateKey::from_str(
2225
"302e020100300506032b65700422042091132178e72057a1d7528025956fe39b0b847f200ab59b2fdd367017f3087137"
2326
)?;
2427

2528
let account_key = PrivateKey::generate_ed25519();
2629

2730
let mut inner_transaction = AccountCreateTransaction::new();
28-
inner_transaction
29-
.set_key_without_alias(account_key.public_key())
30-
.initial_balance(Hbar::new(1));
31+
inner_transaction.set_key_without_alias(account_key.public_key()).initial_balance(Hbar::new(1));
3132

3233
// Use batchify to prepare the transaction
3334
inner_transaction.batchify(&client, operator_key.public_key().into())?;
@@ -36,6 +37,8 @@ async fn can_execute_batch_transaction() -> anyhow::Result<()> {
3637
let mut batch_transaction = BatchTransaction::new();
3738
batch_transaction.add_inner_transaction(inner_transaction.into())?;
3839

40+
client.set_operator(operator_id, operator_key);
41+
3942
let tx_response = batch_transaction.execute(&client).await?;
4043
let _tx_receipt = tx_response.get_receipt(&client).await?;
4144

tests/e2e/fee_schedules.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ use hedera::{
77
use crate::common::TestEnvironment;
88

99
#[tokio::test]
10+
#[ignore]
1011
async fn fetch_fee_schedules() -> anyhow::Result<()> {
1112
let TestEnvironment { client, config: _ } = crate::common::setup_global();
1213

tests/e2e/transaction/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ async fn frozen_serialized_transaction_can_be_deserialized() -> anyhow::Result<(
9595
}
9696

9797
#[tokio::test]
98+
#[ignore]
9899
async fn serialized_deserialized_transaction_can_be_executed() -> anyhow::Result<()> {
99100
let Some(TestEnvironment { config: _, client }) = setup_nonfree() else {
100101
return Ok(());

0 commit comments

Comments
 (0)