Skip to content

Commit 366b1e8

Browse files
committed
golint
Signed-off-by: jukie <[email protected]>
1 parent 8415366 commit 366b1e8

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

internal/gatewayapi/clustersettings_test.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func TestTranslateTrafficFeatures(t *testing.T) {
3232
want: nil,
3333
},
3434
{
35-
name: "empty policy",
35+
name: "empty policy",
3636
policy: &egv1a1.ClusterSettings{},
3737
want: nil,
3838
},
@@ -268,9 +268,9 @@ func TestBuildTCPKeepAlive(t *testing.T) {
268268
name: "valid keepalive settings",
269269
policy: &egv1a1.ClusterSettings{
270270
TCPKeepalive: &egv1a1.TCPKeepalive{
271-
Probes: ptr.To(uint32(3)),
272-
IdleTime: ptr.To(gwapiv1.Duration("60s")),
273-
Interval: ptr.To(gwapiv1.Duration("10s")),
271+
Probes: ptr.To(uint32(3)),
272+
IdleTime: ptr.To(gwapiv1.Duration("60s")),
273+
Interval: ptr.To(gwapiv1.Duration("10s")),
274274
},
275275
},
276276
want: &ir.TCPKeepalive{
@@ -328,10 +328,10 @@ func TestBuildCircuitBreaker(t *testing.T) {
328328
name: "valid circuit breaker settings",
329329
policy: &egv1a1.ClusterSettings{
330330
CircuitBreaker: &egv1a1.CircuitBreaker{
331-
MaxConnections: ptr.To(int64(100)),
332-
MaxParallelRequests: ptr.To(int64(200)),
333-
MaxPendingRequests: ptr.To(int64(50)),
334-
MaxParallelRetries: ptr.To(int64(10)),
331+
MaxConnections: ptr.To(int64(100)),
332+
MaxParallelRequests: ptr.To(int64(200)),
333+
MaxPendingRequests: ptr.To(int64(50)),
334+
MaxParallelRetries: ptr.To(int64(10)),
335335
MaxRequestsPerConnection: ptr.To(int64(1000)),
336336
PerEndpoint: &egv1a1.PerEndpointCircuitBreakers{
337337
MaxConnections: ptr.To(int64(25)),
@@ -705,13 +705,13 @@ func TestBuildHealthCheck(t *testing.T) {
705705
HealthCheck: &egv1a1.HealthCheck{
706706
Active: &egv1a1.ActiveHealthCheck{
707707
Type: egv1a1.ActiveHealthCheckerTypeHTTP,
708-
Timeout: ptr.To(gwapiv1.Duration("5s")),
709-
Interval: ptr.To(gwapiv1.Duration("10s")),
708+
Timeout: ptr.To(gwapiv1.Duration("5s")),
709+
Interval: ptr.To(gwapiv1.Duration("10s")),
710710
UnhealthyThreshold: ptr.To(uint32(3)),
711711
HealthyThreshold: ptr.To(uint32(2)),
712712
HTTP: &egv1a1.HTTPActiveHealthChecker{
713-
Path: "/health",
714-
Method: ptr.To("GET"),
713+
Path: "/health",
714+
Method: ptr.To("GET"),
715715
ExpectedStatuses: []egv1a1.HTTPStatus{200, 201},
716716
},
717717
},
@@ -1058,4 +1058,4 @@ func TestTranslateActiveHealthCheckPayload(t *testing.T) {
10581058
require.Equal(t, tt.want, got)
10591059
})
10601060
}
1061-
}
1061+
}

0 commit comments

Comments
 (0)