Skip to content

Commit

Permalink
Fix go fmt failure
Browse files Browse the repository at this point in the history
Signed-off-by: Dao Thanh Tung <[email protected]>
  • Loading branch information
dttung2905 committed Oct 4, 2023
1 parent 24c9d2b commit 2dae13c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/scalers/azure_data_explorer_scaler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ package scalers
import (
"context"
"fmt"
"testing"
"os"
"testing"

"github.com/go-logr/logr"

Expand Down Expand Up @@ -109,7 +109,7 @@ var testDataExplorerMetricIdentifiers = []dataExplorerMetricIdentifier{
func TestDataExplorerParseMetadata(t *testing.T) {
// Auth through clientId, clientSecret and tenantId
for _, testData := range testDataExplorerMetadataWithClientAndSecret {
// Setting the key and value of the environment variable to be the same
// Setting the key and value of the environment variable to be the same
_ = os.Setenv(testData.metadata["clientSecretFromEnv"], testData.metadata["clientSecretFromEnv"])
meta, err := parseAzureDataExplorerMetadata(
&ScalerConfig{
Expand All @@ -126,7 +126,7 @@ func TestDataExplorerParseMetadata(t *testing.T) {
t.Error("Expected error but got success")
}
if !testData.isError && err == nil && meta.ClientSecret != testData.metadata["clientSecretFromEnv"] {
t.Errorf("Expected clientSecret to be %s but got %s", testData.metadata["clientSecretFromEnv"], meta.ClientSecret)
t.Errorf("Expected clientSecret to be %s but got %s", testData.metadata["clientSecretFromEnv"], meta.ClientSecret)
}
}

Expand Down

0 comments on commit 2dae13c

Please sign in to comment.