Resolve tests
This commit is contained in:
parent
8b10473b9f
commit
a622d48b29
1 changed files with 14 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue