diff --git a/src/jobservice_v2/config/config_test.go b/src/jobservice_v2/config/config_test.go index a82e53a03..aa9b433e0 100644 --- a/src/jobservice_v2/config/config_test.go +++ b/src/jobservice_v2/config/config_test.go @@ -82,8 +82,8 @@ func TestDefaultConfig(t *testing.T) { t.Errorf("Load config from yaml file, expect nil error but got error '%s'\n", err) } - if endpoint := GetAdminServerEndpoint(); endpoint != "http://127.0.0.1:8888/" { - t.Errorf("expect default admin server endpoint 'http://127.0.0.1:8888/' but got '%s'\n", endpoint) + if endpoint := GetAdminServerEndpoint(); endpoint != "http://127.0.0.1:8888" { + t.Errorf("expect default admin server endpoint 'http://127.0.0.1:8888' but got '%s'\n", endpoint) } if basePath := GetLogBasePath(); basePath != "/tmp/job_logs" { diff --git a/src/jobservice_v2/config_test.yml b/src/jobservice_v2/config_test.yml index 301a8ad32..38776559c 100644 --- a/src/jobservice_v2/config_test.yml +++ b/src/jobservice_v2/config_test.yml @@ -28,5 +28,5 @@ logger: archive_period: 1 #days #Admin server endpoint -admin_server: "http://127.0.0.1:8888/" +admin_server: "http://127.0.0.1:8888"