Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ reqwest.workspace = true
rustls.workspace = true
serde.workspace = true
serde_json.workspace = true
sqlx = { version = "0.8.3", features = ["postgres", "runtime-tokio"] }
serde_yaml.workspace = true
server = { path = "../crates/services/server" }
solana-datasets = { path = "../crates/extractors/solana" }
Expand Down
8 changes: 8 additions & 0 deletions tests/src/testlib/ctx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,14 @@ impl TestCtx {
pub fn new_ampctl(&self) -> Ampctl {
Ampctl::new(self.daemon_controller_fixture.admin_api_url())
}

/// Get a reference to the metadata database connection pool.
///
/// Use this to run direct database queries against the metadata database
/// in integration tests (e.g., to verify cascade deletes across tables).
pub fn metadata_db(&self) -> &metadata_db::MetadataDb {
self._metadata_db_fixture.conn_pool()
}
}

/// Helper type for specifying dataset manifest registrations.
Expand Down
Loading
Loading