Skip to content

Commit

Permalink
Drop seeding rand in tests (#1934)
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 authored Feb 19, 2024
1 parent 42ac5f4 commit 9e30a13
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 9e30a13

Please sign in to comment.