Skip to content

Commit

Permalink
Remove rand.Seed(), which was deprecated in Go 1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
VojtechVitek committed Jun 3, 2024
1 parent 047ce9a commit 36637dd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions tests/pgkit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ import (
"errors"
"fmt"
"log"
mrand "math/rand"
"sort"
"testing"
"time"

sq "github.com/Masterminds/squirrel"
"github.com/georgysavva/scany/v2/pgxscan"
Expand All @@ -26,8 +24,6 @@ var (
)

func init() {
mrand.Seed(time.Now().UnixNano())

var err error
DB, err = pgkit.Connect("pgkit_test", pgkit.Config{
Database: "pgkit_test",
Expand Down
1 change: 1 addition & 0 deletions tests/testdata/pgkit_test_db.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ CREATE TABLE accounts (
id SERIAL PRIMARY KEY,
name VARCHAR(255),
disabled BOOLEAN,
new_column_not_in_code BOOLEAN,
created_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP NOT NULL
);

Expand Down

0 comments on commit 36637dd

Please sign in to comment.