You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by da...@apache.org on 2018/07/06 16:02:27 UTC
[trafficcontrol] branch dangogh-config-test created (now f84e0cb)
This is an automated email from the ASF dual-hosted git repository.
dangogh pushed a change to branch dangogh-config-test
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git.
at f84e0cb TO Go -- fix config_test
This branch includes the following new commits:
new f84e0cb TO Go -- fix config_test
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[trafficcontrol] 01/01: TO Go -- fix config_test
Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
dangogh pushed a commit to branch dangogh-config-test
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git
commit f84e0cb96ec0d5e47be6701cc652f56e9e237fbf
Author: Dan Kirkwood <da...@apache.org>
AuthorDate: Fri Jul 6 10:02:25 2018 -0600
TO Go -- fix config_test
expected output was incorrect
---
traffic_ops/traffic_ops_golang/config/config_test.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/traffic_ops/traffic_ops_golang/config/config_test.go b/traffic_ops/traffic_ops_golang/config/config_test.go
index c254914..bf8adc1 100644
--- a/traffic_ops/traffic_ops_golang/config/config_test.go
+++ b/traffic_ops/traffic_ops_golang/config/config_test.go
@@ -197,7 +197,7 @@ func TestLoadConfig(t *testing.T) {
// test bad paths
_, errs, blockStartup := LoadConfig(badPath, badPath, badPath, version)
- exp = fmt.Sprintf("got Loading cdn config from '%s'", badPath)
+ exp = fmt.Sprintf("Loading cdn config from '%s'", badPath)
if !strings.HasPrefix(errs[0].Error(), exp) {
t.Error("expected", exp, "got", errs[0].Error())
}
@@ -207,7 +207,7 @@ func TestLoadConfig(t *testing.T) {
// bad json in cdn.conf
_, errs, blockStartup = LoadConfig(badCfg, badCfg, badPath, version)
- exp = fmt.Sprintf("got Loading cdn config from '%s': unmarshalling '%s'", badCfg, badCfg)
+ exp = fmt.Sprintf("Loading cdn config from '%s': unmarshalling '%s'", badCfg, badCfg)
if !strings.HasPrefix(errs[0].Error(), exp) {
t.Error("expected", exp, "got", errs[0].Error())
}