fix(rust): update mtls tests for timeout params
This commit is contained in:
@@ -4,7 +4,9 @@ async fn live_mysql_mtls_connection_succeeds() {
|
||||
let url = std::env::var("DBX_LIVE_MYSQL_MTLS_URL").expect("DBX_LIVE_MYSQL_MTLS_URL");
|
||||
let ca = std::env::var("DBX_LIVE_MYSQL_MTLS_CA").ok();
|
||||
|
||||
let pool = dbx_core::db::mysql::connect_with_ca_cert(&url, ca.as_deref()).await.unwrap();
|
||||
let pool = dbx_core::db::mysql::connect_with_ca_cert(&url, ca.as_deref(), std::time::Duration::from_secs(5))
|
||||
.await
|
||||
.unwrap();
|
||||
let result =
|
||||
dbx_core::db::mysql::execute_query(&pool, "SELECT label FROM mtls_smoke WHERE id = 1", false).await.unwrap();
|
||||
|
||||
@@ -16,7 +18,7 @@ async fn live_mysql_mtls_connection_succeeds() {
|
||||
async fn live_postgres_mtls_connection_succeeds() {
|
||||
let url = std::env::var("DBX_LIVE_POSTGRES_MTLS_URL").expect("DBX_LIVE_POSTGRES_MTLS_URL");
|
||||
|
||||
let pool = dbx_core::db::postgres::connect(&url).await.unwrap();
|
||||
let pool = dbx_core::db::postgres::connect(&url, std::time::Duration::from_secs(5)).await.unwrap();
|
||||
let result =
|
||||
dbx_core::db::postgres::execute_query(&pool, "SELECT label FROM mtls_smoke WHERE id = 1").await.unwrap();
|
||||
|
||||
|
||||
@@ -12,7 +12,9 @@ use tauri::{
|
||||
menu::MenuBuilder,
|
||||
tray::{MouseButton, MouseButtonState, TrayIconBuilder, TrayIconEvent},
|
||||
};
|
||||
use tauri::{Emitter, Manager, RunEvent};
|
||||
use tauri::Manager;
|
||||
#[cfg(target_os = "macos")]
|
||||
use tauri::{Emitter, RunEvent};
|
||||
#[cfg(any(windows, target_os = "linux"))]
|
||||
use tauri_plugin_deep_link::DeepLinkExt;
|
||||
|
||||
@@ -404,6 +406,9 @@ pub fn run() {
|
||||
.build(tauri::generate_context!())
|
||||
.expect("error while building tauri application")
|
||||
.run(|app_handle, event| {
|
||||
#[cfg(not(target_os = "macos"))]
|
||||
let _ = (&app_handle, &event);
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
if let RunEvent::Opened { urls } = &event {
|
||||
let links: Vec<String> = urls
|
||||
|
||||
Reference in New Issue
Block a user