diff --git a/host/host_test.go b/host/host_test.go index 7630789..ce2d26c 100644 --- a/host/host_test.go +++ b/host/host_test.go @@ -114,8 +114,10 @@ func TestUserStat_String(t *testing.T) { Terminal: "term", Host: "host", Started: 100, + Pid: 0, + Type: 0, } - e := `{"user":"user","terminal":"term","host":"host","started":100}` + e := `{"user":"user","terminal":"term","host":"host","started":100,"type":0,"pid":0}` if e != fmt.Sprintf("%v", v) { t.Errorf("UserStat string is invalid: %v", v) }