Skip to content

Commit

Permalink
chore: use less max_connections
Browse files Browse the repository at this point in the history
  • Loading branch information
avallete committed Oct 23, 2024
1 parent f47fb1b commit 0cf4aca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/db/start/start_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ func TestStartDatabaseWithCustomSettings(t *testing.T) {
utils.DbId = "supabase_db_test"
utils.ConfigId = "supabase_config_test"
utils.Config.Db.Port = 5432
utils.Config.Db.Settings.MaxConnections = cast.Ptr(uint(200))
utils.Config.Db.Settings.MaxConnections = cast.Ptr(uint(50))

// Setup in-memory fs
fsys := afero.NewMemMapFs()
Expand Down Expand Up @@ -352,6 +352,6 @@ func TestStartDatabaseWithCustomSettings(t *testing.T) {

// Check if the custom MaxConnections setting was applied
config := NewContainerConfig()
assert.Contains(t, config.Entrypoint[2], "max_connections = 200")
assert.Contains(t, config.Entrypoint[2], "max_connections = 50")
})
}

0 comments on commit 0cf4aca

Please sign in to comment.