Skip to content

Commit

Permalink
edioast: remove dead code from TestApp
Browse files Browse the repository at this point in the history
Signed-off-by: hamz2a <[email protected]>
  • Loading branch information
hamz2a committed Mar 7, 2025
1 parent 71b91a3 commit bda924a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions editoast/src/views/test_app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,6 @@ impl TestAppBuilder {
TestApp {
server,
db_pool: db_pool_v2,
core_client,
tracing_guard,
}
}
Expand All @@ -305,17 +304,11 @@ impl TestAppBuilder {
pub(crate) struct TestApp {
server: TestServer,
db_pool: Arc<DbConnectionPoolV2>,
core_client: Arc<CoreClient>,
#[allow(unused)] // included here to extend its lifetime, not meant to be used in any way
tracing_guard: tracing::subscriber::DefaultGuard,
}

impl TestApp {
#[allow(dead_code)] // while the pool migration is ongoing
pub fn core_client(&self) -> Arc<CoreClient> {
self.core_client.clone()
}

pub fn db_pool(&self) -> Arc<DbConnectionPoolV2> {
self.db_pool.clone()
}
Expand Down

0 comments on commit bda924a

Please sign in to comment.