lint: remove deprecated rand.Seed from tests

This commit is contained in:
Umputun
2023-08-07 13:09:38 -05:00
parent 2093f4ece2
commit 9ad4f0b75e
2 changed files with 0 additions and 3 deletions
-2
View File
@@ -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
}
@@ -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() {