Browse Source

make fmt with v.1.13

Vitaly Agapov 5 years ago
parent
commit
9c058ef873
2 changed files with 7 additions and 7 deletions
  1. 1 1
      balance_strategy_test.go
  2. 6 6
      client_tls_test.go

+ 1 - 1
balance_strategy_test.go

@@ -203,7 +203,7 @@ func Test_prepopulateCurrentAssignments(t *testing.T) {
 		wantErr                bool
 	}{
 		{
-			name: "Empty map",
+			name:                   "Empty map",
 			wantCurrentAssignments: map[string][]topicPartitionAssignment{},
 			wantPrevAssignments:    map[topicPartitionAssignment]consumerGenerationPair{},
 		},

+ 6 - 6
client_tls_test.go

@@ -33,12 +33,12 @@ func TestTLS(t *testing.T) {
 	nva := time.Now().Add(1 * time.Hour)
 
 	caTemplate := &x509.Certificate{
-		Subject:      pkix.Name{CommonName: "ca"},
-		Issuer:       pkix.Name{CommonName: "ca"},
-		SerialNumber: big.NewInt(0),
-		NotAfter:     nva,
-		NotBefore:    nvb,
-		IsCA:         true,
+		Subject:               pkix.Name{CommonName: "ca"},
+		Issuer:                pkix.Name{CommonName: "ca"},
+		SerialNumber:          big.NewInt(0),
+		NotAfter:              nva,
+		NotBefore:             nvb,
+		IsCA:                  true,
 		BasicConstraintsValid: true,
 		KeyUsage:              x509.KeyUsageCertSign,
 	}