Resolve tests

This commit is contained in:
Jakob Notland 2026-06-09 13:56:25 +02:00
parent 8b10473b9f
commit a622d48b29

View file

@ -29,7 +29,7 @@ mod tests {
use crate::db::cauldron::tx::{insert_block_tx, insert_mempool_tx};
use crate::db::cauldron::utxo_funding::insert_utxo_funding;
use crate::db::crc20::prepare_tables as crc20_prepare_tables;
use crate::db::oracle::prepare_tables as oracle_prepare_tables;
use crate::db::oracle::{insert_delphi_entry, prepare_tables as oracle_prepare_tables, DelphiEntry};
use crate::utiltest::mock_db_pool;
use bitcoin_hashes::hex::ToHex;
@ -51,6 +51,19 @@ mod tests {
oracle_prepare_tables(&pool).await;
let _ = create_cached_token_metrics_table(&pool).await;
dummy_init_seq();
insert_delphi_entry(
&pool,
&DelphiEntry {
txid: Txid::hash(b"test_oracle_tx").to_hex(),
blockhash: BlockHash::hash(b"test_oracle_block").to_hex(),
token_id: BlockHash::hash(b"test_oracle_token").to_hex(),
oracle_timestamp: 0,
oracle_price: 50000,
oracle_sequence: 1,
},
)
.await
.unwrap();
}
// Insert one token with (initial) funding at t0 and a second funding at t1, plus pool history rows.