Skip to content

Commit a0d7403

Browse files
vr-varadmaxdml
authored andcommitted
Fix: Update
1 parent dfa8df1 commit a0d7403

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

dbos/dbos_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,6 @@ func TestConfig(t *testing.T) {
111111
assert.Equal(t, 2*time.Hour, sysdbConfig.MaxConnLifetime)
112112
assert.Equal(t, 2*time.Minute, sysdbConfig.MaxConnIdleTime)
113113
assert.Equal(t, 10*time.Second, sysdbConfig.ConnConfig.ConnectTimeout)
114-
115-
customdbosContext.Shutdown(1 * time.Minute)
116-
err = pool.Ping(context.Background())
117-
assert.NoError(t, err, "Custom pool should not be closed by Shutdown and should still be usable")
118114
})
119115

120116
t.Run("FailsWithoutDatabaseURL", func(t *testing.T) {

dbos/system_database.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,11 +277,11 @@ func newSystemDatabase(ctx context.Context, inputs newSystemDatabaseInput) (syst
277277
config.ConnConfig.ConnectTimeout = 10 * time.Second
278278

279279
// Create pool with configuration
280-
new_pool, err := pgxpool.NewWithConfig(ctx, config)
280+
newPool, err := pgxpool.NewWithConfig(ctx, config)
281281
if err != nil {
282282
return nil, fmt.Errorf("failed to create connection pool: %v", err)
283283
}
284-
pool = new_pool
284+
pool = newPool
285285

286286
}
287287

0 commit comments

Comments
 (0)