Skip to content

Commit

Permalink
lint: remove deprecated rand.Seed from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
umputun committed Aug 7, 2023
1 parent 2093f4e commit 9ad4f0b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions backend/app/cmd/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -821,8 +821,6 @@ func createAppFromCmd(t *testing.T, cmd ServerCommand) (*serverApp, context.Cont
ctx, cancel := context.WithCancel(context.Background())
app, err := cmd.newServerApp(ctx)
require.NoError(t, err)

rand.Seed(time.Now().UnixNano())
return app, ctx, cancel
}

Expand Down
1 change: 0 additions & 1 deletion backend/app/store/service/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,6 @@ func TestService_VoteAggressive(t *testing.T) {
assert.Equal(t, 0, len(res[0].VotedIPs), "vote ips hidden")

// random +1/-1 result should be [0..2]
rand.Seed(time.Now().UnixNano())
for i := 0; i < 100; i++ {
wg.Add(1)
go func() {
Expand Down

0 comments on commit 9ad4f0b

Please sign in to comment.