Skip to content

Commit

Permalink
fix golint
Browse files Browse the repository at this point in the history
  • Loading branch information
ms-henglu committed Oct 9, 2024
1 parent 8ed4a76 commit 86739db
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
18 changes: 6 additions & 12 deletions cmd/migrate_command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,19 @@ package cmd_test

import (
"fmt"
"log"
"math/rand"
"os"
"path/filepath"
"strings"
"testing"
"time"

"github.com/Azure/aztfmigrate/azurerm"
"github.com/Azure/aztfmigrate/cmd"
"github.com/Azure/aztfmigrate/tf"
"github.com/Azure/aztfmigrate/types"
"github.com/hashicorp/hcl/v2"
"github.com/hashicorp/hcl/v2/hclwrite"
"github.com/mitchellh/cli"
"log"
"math/rand"
"os"
"path/filepath"
"strings"
"testing"
)

func TestMigrate_basic(t *testing.T) {
Expand Down Expand Up @@ -194,10 +192,6 @@ provider "azurerm" {

}

func init() {
rand.Seed(time.Now().UnixNano())
}

func tempDir(t *testing.T) string {
tmpDir := filepath.Join(os.TempDir(), "aztfmigrate", t.Name())
err := os.MkdirAll(tmpDir, 0o755)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/Azure/aztfmigrate

go 1.22
go 1.22.0

require (
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.9.2
Expand Down

0 comments on commit 86739db

Please sign in to comment.