Skip to content

Commit

Permalink
Drop seeding rand in tests
Browse files Browse the repository at this point in the history
Since go requirement is migrated to go1.21,
rand doesn't require seeding unless same
sequence is needed.
  • Loading branch information
ferhatelmas committed Feb 15, 2024
1 parent 15213d3 commit 86a8378
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions core_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ func TestGetObjectCore(t *testing.T) {
t.Skip("skipping functional tests for the short runs")
}

// Seed random based on current time.
rand.Seed(time.Now().Unix())

// Instantiate new minio core client object.
c, err := NewCore(
os.Getenv(serverEndpoint),
Expand Down Expand Up @@ -248,9 +245,6 @@ func TestGetObjectContentEncoding(t *testing.T) {
t.Skip("skipping functional tests for the short runs")
}

// Seed random based on current time.
rand.Seed(time.Now().Unix())

// Instantiate new minio core client object.
c, err := NewCore(
os.Getenv(serverEndpoint),
Expand Down Expand Up @@ -324,9 +318,6 @@ func TestGetBucketPolicy(t *testing.T) {
t.Skip("skipping functional tests for short runs")
}

// Seed random based on current time.
rand.Seed(time.Now().Unix())

// Instantiate new minio client object.
c, err := NewCore(
os.Getenv(serverEndpoint),
Expand Down

0 comments on commit 86a8378

Please sign in to comment.