Fix error: Tests fail due to changes in MinIO default port (#13108)

Automatic Merge
Этот коммит содержится в:
larkox
2019-11-22 15:06:51 +01:00
коммит произвёл mattermod
родитель 906f8dccef
Коммит d3c607f5c6
3 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@@ -385,7 +385,7 @@ func TestS3TestConnection(t *testing.T) {
s3Port := os.Getenv("CI_MINIO_PORT")
if s3Port == "" {
s3Port = "9001"
s3Port = "9000"
}
s3Endpoint := fmt.Sprintf("%s:%s", s3Host, s3Port)

Просмотреть файл

@@ -63,7 +63,7 @@ func runBackendTest(t *testing.T, encrypt bool) {
s3Port := os.Getenv("CI_MINIO_PORT")
if s3Port == "" {
s3Port = "9001"
s3Port = "9000"
}
s3Endpoint := fmt.Sprintf("%s:%s", s3Host, s3Port)

Просмотреть файл

@@ -459,8 +459,8 @@ func TestAutolinking(t *testing.T) {
ExpectedHTML: `<p><a href="ftp://example.com">ftp://example.com</a></p>`,
},
// "valid-link-4": {
// Markdown: `ts3server://example.com?port=9001`,
// ExpectedHTML: `<p><a href="ts3server://example.com?port=9001">ts3server://example.com?port=9001</a></p>`,
// Markdown: `ts3server://example.com?port=9000`,
// ExpectedHTML: `<p><a href="ts3server://example.com?port=9000">ts3server://example.com?port=9000</a></p>`,
// },
"valid-link-5": {
Markdown: `www.example.com`,