Skip to content

Commit b33bc00

Browse files
committed
chore: fix the unit test
Signed-off-by: Manish Dait <daitmanish88@gmail.com>
1 parent 75381e9 commit b33bc00

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/unit/transaction_test.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ def test_tx_without_optional_fields_should_have_smaller_tx_body(
271271
.set_initial_balance(Hbar(2))
272272
.set_transaction_id(transaction_id)
273273
.set_node_account_id(account_id)
274+
.set_alias(PrivateKey.generate_ecdsa().public_key().to_evm_address())
274275
.set_transaction_valid_duration(10)
275276
.freeze()
276277
)
@@ -361,9 +362,8 @@ def test_chunked_tx_return_proper_sizes(file_id, account_id, transaction_id):
361362

362363
small_size = small_tx.size
363364

364-
# Since large content is 2KB and chunk size is 1KB, this should create 2 chunks
365365
# Size should be greater than single chunk size
366-
large_size > 1024
366+
assert large_size > 1024
367367

368-
# The larger chunked transaction should be bigger than the small single-chunk transaction
369-
large_size > small_size
368+
# The larger chunked transaction should be bigger than the single-chunk transaction
369+
assert large_size > small_size

0 commit comments

Comments
 (0)