From 2ca12350f495f969d674557a0ffc64822923633f Mon Sep 17 00:00:00 2001 From: "dean.lu" Date: Wed, 11 May 2022 10:16:31 +0800 Subject: [PATCH] Add "PID" and "type" fields --- host/host_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) }