Merge pull request #4401 from hashicorp/jefferai-linter-fixes

Fix linter warnings, parts 1 and 2
This commit is contained in:
Jeff Mitchell authored and GitHub committed 2024-02-14 17:55:41 -05:00
commit 4068829509
91 files changed
+472 -411

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