Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayashsatolia403 authored and stewartie4 committed Nov 8, 2023
1 parent 2d94b2e commit 754629f
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions tests/cli_tests/zboxcli_file_upload_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import (
"encoding/base64"
"encoding/json"
"fmt"
"github.com/0chain/system_test/tests/tokenomics_tests/utils"
"math/rand"
"os"
"os/exec"
"path"
Expand All @@ -18,6 +16,8 @@ import (
"testing"
"time"

"github.com/0chain/system_test/tests/tokenomics_tests/utils"

"github.com/0chain/system_test/internal/api/util/test"

"github.com/stretchr/testify/require"
Expand Down Expand Up @@ -1116,13 +1116,3 @@ func waitPartialUploadAndInterrupt(t *test.SystemTest, cmd *exec.Cmd) bool {
}
}
}

func generateRandomString(length int) string {
rand.Seed(time.Now().UnixNano())
charSet := "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
result := make([]byte, length)
for i := range result {
result[i] = charSet[rand.Intn(len(charSet))]
}
return string(result)
}

0 comments on commit 754629f

Please sign in to comment.