Function setup_txsender_test_db

Source
pub async fn setup_txsender_test_db(config: &TxSenderConfig) -> TxSenderDb
Expand description

Sets up a test database with a unique name based on the current test thread name.

This function follows the same pattern as core::test::common::create_test_config_with_thread_name: it extracts the thread name, creates a unique database name, drops/creates the database, and runs migrations.

ยงPanics

Panics if:

  • The thread name cannot be retrieved
  • Database connection fails
  • Database operations fail