Skip to content

Commit 9a8b555

Browse files
author
JPadovano1483
committed
fixed formatting
1 parent f1f69a7 commit 9a8b555

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

internal/utils/configs/config_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func TestConnectJson(t *testing.T) {
1818
{name: "domain with numbers", host: "12345.example.com"},
1919
{name: "kubernetes service DNS", host: "my-svc.my-namespace.svc.cluster-domain.example"},
2020
{name: "empty string", host: ""},
21-
}{
21+
} {
2222
t.Run(test.name, func(t *testing.T) {
2323
cj := ConnectJson(test.host)
2424
assertConnectJsonResult(t, cj, test.host)
@@ -76,4 +76,4 @@ func assertTlsFields(t *testing.T, result map[string]any) {
7676
if tls["verify"] != true {
7777
t.Error("Expected verify to be true")
7878
}
79-
}
79+
}

internal/utils/retry.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ type Result struct {
8383
Error error
8484
}
8585

86-
8786
// RetryWithContext retries f every interval until the specified context times out.
8887
func RetryWithContext(ctx context.Context, interval time.Duration, f ConditionFunc) error {
8988
tick := time.NewTicker(interval)

internal/utils/tlscfg/tls_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ func TestModern(t *testing.T) {
2626
if config.MinVersion != tls.VersionTLS13 {
2727
t.Errorf("Expected MinVersion to be TLSv1.3 (%d), got %d", tls.VersionTLS13, config.MinVersion)
2828
}
29-
}
29+
}

internal/utils/utils_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func TestSliceEquals(t *testing.T) {
7373

7474
func TestDefaultStr(t *testing.T) {
7575
testTable := []struct {
76-
name string
76+
name string
7777
values []string
7878
result string
7979
}{
@@ -89,10 +89,10 @@ func TestDefaultStr(t *testing.T) {
8989
}
9090

9191
for _, test := range testTable {
92-
t.Run(test.name, func(t * testing.T) {
92+
t.Run(test.name, func(t *testing.T) {
9393
expectedResult := test.result
9494
actualResult := DefaultStr(test.values...)
9595
assert.Equal(t, expectedResult, actualResult)
9696
})
9797
}
98-
}
98+
}

0 commit comments

Comments
 (0)