ci: fix rust ci (#4861)

This commit is contained in:
Richard Shiue 2024-03-10 16:02:30 +08:00 committed by GitHub
parent ddd4ba8287
commit 4b5195d891
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -91,7 +91,7 @@ jobs:
RUST_LOG: info
RUST_BACKTRACE: 1
af_cloud_test_base_url: http://localhost
af_cloud_test_ws_url: ws://localhost/ws
af_cloud_test_ws_url: ws://localhost/ws/v1
af_cloud_test_gotrue_url: http://localhost/gotrue
run: cargo test --no-default-features --features="rev-sqlite,dart" -- --nocapture

View File

@ -259,7 +259,7 @@ fn spawn_ws_conn(
tokio::time::sleep(Duration::from_secs(2)).await;
event!(tracing::Level::INFO, "🟢reconnecting websocket");
let _ = ws_client.connect(&api_client.ws_addr(), conn_info).await;
let _ = ws_client.connect(api_client.ws_addr(), conn_info).await;
},
Err(err) => error!("Failed to get ws url: {}, connect state:{:?}", err, state),
}
@ -291,7 +291,7 @@ fn spawn_ws_conn(
{
match api_client.ws_connect_info().await {
Ok(conn_info) => {
let _ = ws_client.connect(&api_client.ws_addr(), conn_info).await;
let _ = ws_client.connect(api_client.ws_addr(), conn_info).await;
},
Err(err) => error!("Failed to get ws url: {}", err),
}