From 17abec449f132241f14e41dbe8d5b98449775773 Mon Sep 17 00:00:00 2001 From: Rogee Date: Wed, 30 Sep 2026 14:33:37 +0800 Subject: [PATCH] =?UTF-8?q?style(gateway):=20gofmt=20=E6=8E=A2=E6=B4=BB?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/controlplane/api/gateway_health_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/controlplane/api/gateway_health_test.go b/internal/controlplane/api/gateway_health_test.go index 2fcccc9..e14f825 100644 --- a/internal/controlplane/api/gateway_health_test.go +++ b/internal/controlplane/api/gateway_health_test.go @@ -253,7 +253,7 @@ func TestUpdateGatewayProbesHealthImmediately(t *testing.T) { // TestUpdateGatewayUnreachableRecordsUnhealthy:编辑指向不可达地址时保存照常成功, // 后台探活把 unhealthy 结果落库供页面展示。 func TestUpdateGatewayUnreachableRecordsUnhealthy(t *testing.T) { - t.Cleanup(restoreGatewayHealthProbeTimeout(setGatewayHealthProbeTimeout(300*time.Millisecond))) + t.Cleanup(restoreGatewayHealthProbeTimeout(setGatewayHealthProbeTimeout(300 * time.Millisecond))) store := &healthMemoryStore{memoryStore: newMemoryStore()} store.gateways["gw-1"] = hub.Gateway{Name: "gw-1", Endpoint: "http://gw-old:8081", Token: "unit-test-gateway-token"} closedServer := httptest.NewServer(http.HandlerFunc(func(http.ResponseWriter, *http.Request) {}))