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) {}))