Skip to content

Commit b1deb6d

Browse files
committed
fix: fixed api-tests.ts
1 parent 3218ff0 commit b1deb6d

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

src/tests/api-tests.ts

+20-2
Original file line numberDiff line numberDiff line change
@@ -8944,7 +8944,7 @@ describe('api tests', () => {
89448944
execution_cost_write_count: 0,
89458945
execution_cost_write_length: 0,
89468946
};
8947-
await db.updateBlock(client, block);
8947+
// await db.updateBlock(client, block);
89488948
const tx: DbTx = {
89498949
tx_id: '0x1234',
89508950
tx_index: 4,
@@ -8979,7 +8979,25 @@ describe('api tests', () => {
89798979
execution_cost_write_count: 0,
89808980
execution_cost_write_length: 0,
89818981
};
8982-
await db.updateTx(client, tx);
8982+
// await db.updateTx(client, tx);
8983+
await db.update({
8984+
block,
8985+
microblocks: [],
8986+
minerRewards: [],
8987+
txs: [
8988+
{
8989+
tx,
8990+
stxEvents: [],
8991+
stxLockEvents: [],
8992+
ftEvents: [],
8993+
nftEvents: [],
8994+
contractLogEvents: [],
8995+
names: [],
8996+
namespaces: [],
8997+
smartContracts: [],
8998+
},
8999+
],
9000+
});
89839001
const result = await supertest(api.server).get(
89849002
`/extended/v1/tx/block/${block.block_hash}?limit=20&offset=0`
89859003
);

0 commit comments

Comments
 (0)