Skip to content

Commit

Permalink
fix: github workflow action
Browse files Browse the repository at this point in the history
  • Loading branch information
luffy2025 committed Aug 6, 2024
1 parent 71ac497 commit f82f8b3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions chat_server/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,8 @@ mod test_util {
pub async fn new_for_test(config: AppConfig) -> Result<(TestPg, Self), AppError> {
let dk = DecodingKey::load(&config.auth.pk).context("load pk failed")?;
let ek = EncodingKey::load(&config.auth.sk).context("load ek failed")?;
// let post = config.server.db_url.rfind('/').expect("invalid db_url");
// let server_url = &config.server.db_url[..post];
let server_url = "postgres://postgres:postgres@localhost:5432";
let post = config.server.db_url.rfind('/').expect("invalid db_url");
let server_url = &config.server.db_url[..post];
let (tdb, pool) = get_test_pool(Some(server_url)).await;
let state = Self {
inner: Arc::new(AppStateInner {
Expand Down

0 comments on commit f82f8b3

Please sign in to comment.