Skip to content

Commit 1825462

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

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
@@ -122,6 +122,7 @@ def test_tx_without_optional_fields_should_have_smaller_tx_body(
122122
.set_initial_balance(Hbar(2))
123123
.set_transaction_id(transaction_id)
124124
.set_node_account_id(account_id)
125+
.set_alias(PrivateKey.generate_ecdsa().public_key().to_evm_address())
125126
.set_transaction_valid_duration(10)
126127
.freeze()
127128
)
@@ -212,9 +213,8 @@ def test_chunked_tx_return_proper_sizes(file_id, account_id, transaction_id):
212213

213214
small_size = small_tx.size
214215

215-
# Since large content is 2KB and chunk size is 1KB, this should create 2 chunks
216216
# Size should be greater than single chunk size
217-
large_size > 1024
217+
assert large_size > 1024
218218

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

0 commit comments

Comments
 (0)