This is an automated email from the ASF dual-hosted git repository. dangogh pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-trafficcontrol.git
commit 4d472a2d55eb89c47ac2bc4f346c461269760647 Author: Dewayne Richardson <dewr...@apache.org> AuthorDate: Mon Mar 12 09:51:51 2018 -0600 fixed unit test --- traffic_ops/traffic_ops_golang/hwinfo/hwinfo_test.go | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/traffic_ops/traffic_ops_golang/hwinfo/hwinfo_test.go b/traffic_ops/traffic_ops_golang/hwinfo/hwinfo_test.go index f1517bd..10f7be4 100644 --- a/traffic_ops/traffic_ops_golang/hwinfo/hwinfo_test.go +++ b/traffic_ops/traffic_ops_golang/hwinfo/hwinfo_test.go @@ -20,8 +20,6 @@ package hwinfo */ import ( - "encoding/json" - "fmt" "testing" "time" @@ -68,8 +66,6 @@ func TestGetHWInfo(t *testing.T) { cols := test.ColsFromStructByTag("db", tc.HWInfo{}) rows := sqlmock.NewRows(cols) - //TODO: drichardson - build helper to add these Rows from the struct values - // or by CSV if types get in the way for _, ts := range testHWInfo { rows = rows.AddRow( ts.Description, @@ -93,17 +89,6 @@ func TestGetHWInfo(t *testing.T) { } } -func TestJSON(t *testing.T) { - testHWInfo := getTestHWInfo() - txt, err := json.Marshal(testHWInfo) - if *debugLogging { - fmt.Printf("%v, %s\n", err, txt) - } - if err != nil { - t.Errorf("Json.Marshal failed: %s\n", err) - } -} - type SortableHWInfo []tc.HWInfo func (s SortableHWInfo) Len() int { -- To stop receiving notification emails like this one, please contact dang...@apache.org.