Skip to content

Commit 8ec9924

Browse files
committed
chore: fix the unit test
Signed-off-by: Manish Dait <daitmanish88@gmail.com>
1 parent 7ad490b commit 8ec9924

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
@@ -263,6 +263,7 @@ def test_tx_without_optional_fields_should_have_smaller_tx_body(
263263
.set_initial_balance(Hbar(2))
264264
.set_transaction_id(transaction_id)
265265
.set_node_account_id(account_id)
266+
.set_alias(PrivateKey.generate_ecdsa().public_key().to_evm_address())
266267
.set_transaction_valid_duration(10)
267268
.freeze()
268269
)
@@ -353,9 +354,8 @@ def test_chunked_tx_return_proper_sizes(file_id, account_id, transaction_id):
353354

354355
small_size = small_tx.size
355356

356-
# Since large content is 2KB and chunk size is 1KB, this should create 2 chunks
357357
# Size should be greater than single chunk size
358-
large_size > 1024
358+
assert large_size > 1024
359359

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

0 commit comments

Comments
 (0)