fix: session refresh works as intended now (#5330)
* fix: session refresh works as intended now * use code-defined defaults for expires and session_expires * fix sqlx * database migration drop defaults * run fmt * remove comment in migration Signed-off-by: Xander <xander@isxander.dev> --------- Signed-off-by: Xander <xander@isxander.dev>
This commit is contained in:
@@ -46,13 +46,21 @@ impl PostgresContainer {
|
||||
|
||||
#[tokio::test]
|
||||
async fn execute() {
|
||||
let observability = opentelemetry_testing::ObservabilityContainer::create().await;
|
||||
let observability =
|
||||
opentelemetry_testing::ObservabilityContainer::create().await;
|
||||
let provider = observability.install().await;
|
||||
|
||||
let container = PostgresContainer::create().await;
|
||||
let pool = container.client().await;
|
||||
|
||||
common::should_trace("trace_pool", "postgresql", &observability, &provider, &pool).await;
|
||||
common::should_trace(
|
||||
"trace_pool",
|
||||
"postgresql",
|
||||
&observability,
|
||||
&provider,
|
||||
&pool,
|
||||
)
|
||||
.await;
|
||||
|
||||
{
|
||||
let mut conn = pool.acquire().await.unwrap();
|
||||
@@ -67,7 +75,8 @@ async fn execute() {
|
||||
}
|
||||
|
||||
{
|
||||
let mut tx: sqlx_tracing::Transaction<'_, Postgres> = pool.begin().await.unwrap();
|
||||
let mut tx: sqlx_tracing::Transaction<'_, Postgres> =
|
||||
pool.begin().await.unwrap();
|
||||
common::should_trace(
|
||||
"trace_tx",
|
||||
"postgresql",
|
||||
|
||||
Reference in New Issue
Block a user