From 3ce31586df9aa578e3ca59170bad93b270d2260f Mon Sep 17 00:00:00 2001 From: Steven Zou Date: Wed, 28 Mar 2018 12:40:36 +0800 Subject: [PATCH] Fix the issue of causing config test failed --- src/jobservice_v2/config/config_test.go | 4 ++-- src/jobservice_v2/config_test.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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"