Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b03c7f6

Browse files
Upgrade versions. (fergusstrange#85)
1 parent f9d296f commit b03c7f6

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

config.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ type Config struct {
2424

2525
// DefaultConfig provides a default set of configuration to be used "as is" or modified using the provided builders.
2626
// The following can be assumed as defaults:
27-
// Version: 12
27+
// Version: 14
2828
// Port: 5432
2929
// Database: postgres
3030
// Username: postgres
3131
// Password: postgres
3232
// StartTimeout: 15 Seconds
3333
func DefaultConfig() Config {
3434
return Config{
35-
version: V12,
35+
version: V14,
3636
port: 5432,
3737
database: "postgres",
3838
username: "postgres",
@@ -123,10 +123,10 @@ type PostgresVersion string
123123

124124
// Predefined supported Postgres versions.
125125
const (
126-
V14 = PostgresVersion("14.3.0")
127-
V13 = PostgresVersion("13.7.0")
128-
V12 = PostgresVersion("12.11.0")
129-
V11 = PostgresVersion("11.16.0")
130-
V10 = PostgresVersion("10.21.0")
126+
V14 = PostgresVersion("14.5.0")
127+
V13 = PostgresVersion("13.8.0")
128+
V12 = PostgresVersion("12.12.0")
129+
V11 = PostgresVersion("11.17.0")
130+
V10 = PostgresVersion("10.22.0")
131131
V9 = PostgresVersion("9.6.24")
132132
)

version_strategy_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func Test_DefaultVersionStrategy_AllGolangDistributions(t *testing.T) {
7474

7575
assert.Equal(t, expected[0], operatingSystem)
7676
assert.Equal(t, expected[1], architecture)
77-
assert.Equal(t, V12, postgresVersion)
77+
assert.Equal(t, V14, postgresVersion)
7878
})
7979
}
8080
}
@@ -92,7 +92,7 @@ func Test_DefaultVersionStrategy_Linux_ARM32V6(t *testing.T) {
9292

9393
assert.Equal(t, "linux", operatingSystem)
9494
assert.Equal(t, "arm32v6", architecture)
95-
assert.Equal(t, V12, postgresVersion)
95+
assert.Equal(t, V14, postgresVersion)
9696
}
9797

9898
func Test_DefaultVersionStrategy_Linux_ARM32V7(t *testing.T) {
@@ -108,7 +108,7 @@ func Test_DefaultVersionStrategy_Linux_ARM32V7(t *testing.T) {
108108

109109
assert.Equal(t, "linux", operatingSystem)
110110
assert.Equal(t, "arm32v7", architecture)
111-
assert.Equal(t, V12, postgresVersion)
111+
assert.Equal(t, V14, postgresVersion)
112112
}
113113

114114
func Test_DefaultVersionStrategy_Linux_Alpine(t *testing.T) {
@@ -126,7 +126,7 @@ func Test_DefaultVersionStrategy_Linux_Alpine(t *testing.T) {
126126

127127
assert.Equal(t, "linux", operatingSystem)
128128
assert.Equal(t, "amd64-alpine", architecture)
129-
assert.Equal(t, V12, postgresVersion)
129+
assert.Equal(t, V14, postgresVersion)
130130
}
131131

132132
func Test_DefaultVersionStrategy_shouldUseAlpineLinuxBuild(t *testing.T) {

0 commit comments

Comments
 (0)