From d3c607f5c6690f0687379490eab73c2059e3bb1e Mon Sep 17 00:00:00 2001 From: larkox Date: Fri, 22 Nov 2019 15:06:51 +0100 Subject: [PATCH] Fix error: Tests fail due to changes in MinIO default port (#13108) Automatic Merge --- api4/system_test.go | 2 +- services/filesstore/filesstore_test.go | 2 +- utils/markdown/autolink_test.go | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api4/system_test.go b/api4/system_test.go index 6d887b8abe..b3e893f34f 100644 --- a/api4/system_test.go +++ b/api4/system_test.go @@ -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) diff --git a/services/filesstore/filesstore_test.go b/services/filesstore/filesstore_test.go index 7630523f23..6de790fd55 100644 --- a/services/filesstore/filesstore_test.go +++ b/services/filesstore/filesstore_test.go @@ -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) diff --git a/utils/markdown/autolink_test.go b/utils/markdown/autolink_test.go index c0e07f327b..2ced13b52b 100644 --- a/utils/markdown/autolink_test.go +++ b/utils/markdown/autolink_test.go @@ -459,8 +459,8 @@ func TestAutolinking(t *testing.T) { ExpectedHTML: `

ftp://example.com

`, }, // "valid-link-4": { - // Markdown: `ts3server://example.com?port=9001`, - // ExpectedHTML: `

ts3server://example.com?port=9001

`, + // Markdown: `ts3server://example.com?port=9000`, + // ExpectedHTML: `

ts3server://example.com?port=9000

`, // }, "valid-link-5": { Markdown: `www.example.com`,