Skip to content

Commit b632dc8

Browse files
Update default version (#113)
Update major versions
1 parent 54a6dcf commit b632dc8

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

config.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ type Config struct {
3333
// StartTimeout: 15 Seconds
3434
func DefaultConfig() Config {
3535
return Config{
36-
version: V14,
36+
version: V15,
3737
port: 5432,
3838
database: "postgres",
3939
username: "postgres",
@@ -128,11 +128,11 @@ type PostgresVersion string
128128

129129
// Predefined supported Postgres versions.
130130
const (
131-
V15 = PostgresVersion("15.1.0")
132-
V14 = PostgresVersion("14.6.0")
133-
V13 = PostgresVersion("13.9.0")
134-
V12 = PostgresVersion("12.13.0")
135-
V11 = PostgresVersion("11.18.0")
131+
V15 = PostgresVersion("15.3.0")
132+
V14 = PostgresVersion("14.8.0")
133+
V13 = PostgresVersion("13.11.0")
134+
V12 = PostgresVersion("12.15.0")
135+
V11 = PostgresVersion("11.20.0")
136136
V10 = PostgresVersion("10.23.0")
137137
V9 = PostgresVersion("9.6.24")
138138
)

version_strategy_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func Test_DefaultVersionStrategy_AllGolangDistributions(t *testing.T) {
5757
PostgresVersion("14.0.0"): {},
5858
PostgresVersion("14.1.0"): {},
5959
PostgresVersion("14.2.0"): {"darwin/arm64": {"darwin", "arm64v8"}},
60-
V14: {"darwin/arm64": {"darwin", "arm64v8"}},
60+
V15: {"darwin/arm64": {"darwin", "arm64v8"}},
6161
}
6262
defaultConfig := DefaultConfig()
6363

@@ -105,7 +105,7 @@ func Test_DefaultVersionStrategy_Linux_ARM32V6(t *testing.T) {
105105

106106
assert.Equal(t, "linux", operatingSystem)
107107
assert.Equal(t, "arm32v6", architecture)
108-
assert.Equal(t, V14, postgresVersion)
108+
assert.Equal(t, V15, postgresVersion)
109109
}
110110

111111
func Test_DefaultVersionStrategy_Linux_ARM32V7(t *testing.T) {
@@ -121,7 +121,7 @@ func Test_DefaultVersionStrategy_Linux_ARM32V7(t *testing.T) {
121121

122122
assert.Equal(t, "linux", operatingSystem)
123123
assert.Equal(t, "arm32v7", architecture)
124-
assert.Equal(t, V14, postgresVersion)
124+
assert.Equal(t, V15, postgresVersion)
125125
}
126126

127127
func Test_DefaultVersionStrategy_Linux_Alpine(t *testing.T) {
@@ -139,7 +139,7 @@ func Test_DefaultVersionStrategy_Linux_Alpine(t *testing.T) {
139139

140140
assert.Equal(t, "linux", operatingSystem)
141141
assert.Equal(t, "amd64-alpine", architecture)
142-
assert.Equal(t, V14, postgresVersion)
142+
assert.Equal(t, V15, postgresVersion)
143143
}
144144

145145
func Test_DefaultVersionStrategy_shouldUseAlpineLinuxBuild(t *testing.T) {

0 commit comments

Comments
 (0)