This is an automated email from the ASF dual-hosted git repository.

mattjackson pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git


The following commit(s) were added to refs/heads/master by this push:
     new daa6a55  Remove test that checks wildly varying system-dependent value 
(#5469)
daa6a55 is described below

commit daa6a551747982eb504aaced2b9361feb91f08af
Author: ocket8888 <[email protected]>
AuthorDate: Fri Feb 5 14:29:17 2021 -0500

    Remove test that checks wildly varying system-dependent value (#5469)
---
 traffic_monitor/datareq/datareq_test.go | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/traffic_monitor/datareq/datareq_test.go 
b/traffic_monitor/datareq/datareq_test.go
index 3ce5f93..6adfe11 100644
--- a/traffic_monitor/datareq/datareq_test.go
+++ b/traffic_monitor/datareq/datareq_test.go
@@ -30,8 +30,7 @@ import (
        "github.com/apache/trafficcontrol/lib/go-util"
        "github.com/apache/trafficcontrol/traffic_monitor/config"
        "github.com/apache/trafficcontrol/traffic_monitor/peer"
-
-       "github.com/json-iterator/go"
+       jsoniter "github.com/json-iterator/go"
 )
 
 type AvailabilityType string
@@ -244,9 +243,6 @@ func TestGetStats(t *testing.T) {
        if st.FreeMemoryMB != appData.FreeMemoryMB {
                t.Fatalf("expected getStats FreeMemoryMB '%+v', actual: 
'%+v'\n", appData.FreeMemoryMB, st.FreeMemoryMB)
        }
-       if st.TotalMemoryMB <= 0 {
-               t.Fatalf("expected getStats TotalMemoryMB > 0, actual: 
'%+v'\n", st.TotalMemoryMB)
-       }
        if st.Version != appData.Version {
                t.Fatalf("expected getStats Version '%+v', actual: '%+v'\n", 
appData.Version, st.Version)
        }

Reply via email to