Fix linter warnings

This commit is contained in:
Jeff Mitchell committed 2024-02-13 15:50:11 -05:00
1 parent 1b1c8b3bf9
commit 25bce9e8ff
74 files changed
+300 -302

No files matched your search

@@ -226,7 +226,7 @@ func cycleSessionStates(t testing.TB, ctx context.Context, sess *session.Session
}
// Cancel 50% of the sessions
if rand.Intn(2) == 0 {
sess, err = sessRepo.CancelSession(ctx, sess.PublicId, sess.Version)
_, err = sessRepo.CancelSession(ctx, sess.PublicId, sess.Version)
require.NoError(t, err)
_, err = session.CloseConnections(ctx, sessRepo, connRepo, closeWiths)
require.NoError(t, err)
-3
View File
@@ -9,7 +9,6 @@ import (
"fmt"
"math/rand"
"os"
"time"
// postgres dialect
@@ -25,8 +24,6 @@ var (
)
func init() {
rand.Seed(time.Now().UnixNano())
p := os.Getenv("TEST_DB_PORT")
if p != "" {
testDBPort = p