style(gateway): gofmt 探活测试文件
douyin-release-gate / verify (push) Failing after 3m42s

This commit is contained in:
2026-09-30 14:33:37 +08:00
parent e12e03b3b4
commit 17abec449f
@@ -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) {}))