From cc0e89895322f187e29c2afd07e84e3d0a1e178e Mon Sep 17 00:00:00 2001 From: duwenxin Date: Tue, 10 Feb 2026 00:26:59 -0500 Subject: [PATCH] clickhouse --- tests/clickhouse/clickhouse_integration_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/clickhouse/clickhouse_integration_test.go b/tests/clickhouse/clickhouse_integration_test.go index 10b1ea807b..b05f727283 100644 --- a/tests/clickhouse/clickhouse_integration_test.go +++ b/tests/clickhouse/clickhouse_integration_test.go @@ -1123,16 +1123,16 @@ func TestClickHouseListTablesTool(t *testing.T) { t.Run("ListTablesWithMissingDatabase", func(t *testing.T) { api := "http://127.0.0.1:5000/api/tool/test-list-tables/invoke" resp, _ := tests.RunRequest(t, http.MethodPost, api, bytes.NewBuffer([]byte(`{}`)), nil) - if resp.StatusCode == http.StatusOK { - t.Error("Expected error for missing database parameter, but got 200 OK") + if resp.StatusCode != http.StatusOK { + t.Errorf("Expected 200 OK for missing database parameter, but got %d", resp.StatusCode) } }) t.Run("ListTablesWithInvalidSource", func(t *testing.T) { api := "http://127.0.0.1:5000/api/tool/test-invalid-source/invoke" resp, _ := tests.RunRequest(t, http.MethodPost, api, bytes.NewBuffer([]byte(`{}`)), nil) - if resp.StatusCode == http.StatusOK { - t.Error("Expected error for non-existent source, but got 200 OK") + if resp.StatusCode != http.StatusOK { + t.Errorf("Expected 200 OK for non-existent source, but got %d", resp.StatusCode) } })