mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-08 00:03:07 +00:00
test: remove tracing init from API tests to silence server logs in CI
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
b87356bfe7
commit
757401c9bb
@@ -42,7 +42,6 @@ fn new_app(path: &str, summary: &str) -> serde_json::Value {
|
||||
|
||||
#[sqlx::test(fixtures("base"))]
|
||||
async fn test_app_endpoints(db: Pool<Postgres>) -> anyhow::Result<()> {
|
||||
initialize_tracing().await;
|
||||
let server = ApiServer::start(db.clone()).await?;
|
||||
let port = server.addr.port();
|
||||
let base = format!("http://localhost:{port}/api/w/test-workspace/apps");
|
||||
|
||||
@@ -42,7 +42,6 @@ fn new_flow(path: &str, summary: &str) -> serde_json::Value {
|
||||
|
||||
#[sqlx::test(fixtures("base"))]
|
||||
async fn test_flow_endpoints(db: Pool<Postgres>) -> anyhow::Result<()> {
|
||||
initialize_tracing().await;
|
||||
let server = ApiServer::start(db.clone()).await?;
|
||||
let port = server.addr.port();
|
||||
let base = format!("http://localhost:{port}/api/w/test-workspace/flows");
|
||||
|
||||
@@ -25,7 +25,6 @@ async fn authed_get(port: u16, endpoint: &str, path: &str) -> reqwest::Response
|
||||
|
||||
#[sqlx::test(fixtures("base", "resources_test"))]
|
||||
async fn test_resource_endpoints(db: Pool<Postgres>) -> anyhow::Result<()> {
|
||||
initialize_tracing().await;
|
||||
let server = ApiServer::start(db.clone()).await?;
|
||||
let port = server.addr.port();
|
||||
let base = format!("http://localhost:{port}/api/w/test-workspace/resources");
|
||||
@@ -383,7 +382,6 @@ async fn test_resource_endpoints(db: Pool<Postgres>) -> anyhow::Result<()> {
|
||||
|
||||
#[sqlx::test(fixtures("base", "resources_test"))]
|
||||
async fn test_mcp_tools(db: Pool<Postgres>) -> anyhow::Result<()> {
|
||||
initialize_tracing().await;
|
||||
let server = ApiServer::start(db.clone()).await?;
|
||||
let port = server.addr.port();
|
||||
|
||||
|
||||
@@ -41,7 +41,6 @@ fn new_script(path: &str, summary: &str, content: &str) -> serde_json::Value {
|
||||
|
||||
#[sqlx::test(fixtures("base"))]
|
||||
async fn test_script_endpoints(db: Pool<Postgres>) -> anyhow::Result<()> {
|
||||
initialize_tracing().await;
|
||||
let server = ApiServer::start(db.clone()).await?;
|
||||
let port = server.addr.port();
|
||||
let base = format!("http://localhost:{port}/api/w/test-workspace/scripts");
|
||||
|
||||
@@ -25,7 +25,6 @@ async fn authed_get(port: u16, endpoint: &str, path: &str) -> reqwest::Response
|
||||
|
||||
#[sqlx::test(fixtures("base", "variables_test"))]
|
||||
async fn test_variable_endpoints(db: Pool<Postgres>) -> anyhow::Result<()> {
|
||||
initialize_tracing().await;
|
||||
let server = ApiServer::start(db.clone()).await?;
|
||||
let port = server.addr.port();
|
||||
let base = format!("http://localhost:{port}/api/w/test-workspace/variables");
|
||||
|
||||
Reference in New Issue
Block a user