Skip to content

Commit 5b2e88b

Browse files
authored
refactored rosetta tests - separated construction tests (#1103)
* test: refactored block/transaction * test: separated construction from other tests and removed integration for other rosetta tests * refactor: removed unnecessary imports * test: failing test to check re-run for rosetta * test: removed debugging error * fix: added await for timeout in standByForPox * refactor: removed rerunning of failure tests
1 parent 9d01c20 commit 5b2e88b

File tree

3 files changed

+2808
-2815
lines changed

3 files changed

+2808
-2815
lines changed

src/test-utils/test-builders.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ interface TestTxArgs {
157157
status?: DbTxStatus;
158158
token_transfer_amount?: bigint;
159159
token_transfer_recipient_address?: string;
160+
token_transfer_memo?: Buffer;
160161
tx_id?: string;
161162
tx_index?: number;
162163
type_id?: DbTxTypeId;
@@ -200,6 +201,7 @@ function testTx(args?: TestTxArgs): DataStoreTxEventData {
200201
microblock_hash: args?.microblock_hash ?? MICROBLOCK_HASH,
201202
token_transfer_amount: args?.token_transfer_amount ?? TOKEN_TRANSFER_AMOUNT,
202203
token_transfer_recipient_address: args?.token_transfer_recipient_address ?? RECIPIENT_ADDRESS,
204+
token_transfer_memo: args?.token_transfer_memo,
203205
smart_contract_contract_id: args?.smart_contract_contract_id,
204206
execution_cost_read_count: 0,
205207
execution_cost_read_length: 0,

0 commit comments

Comments
 (0)