fix change of json tag name.

pull/4/head
Shirou WAKAYAMA 11 years ago
parent c8ee4d9b07
commit 4cb5a9a806

@ -31,7 +31,7 @@ func TestNetConnectionStatString(t *testing.T) {
Family: 10, Family: 10,
Type: 10, Type: 10,
} }
e := `{"fd":10,"family":10,"type":10,"laddr":{"ip":"","port":0},"raddr":{"ip":"","port":0},"status":"","pid":0}` e := `{"fd":10,"family":10,"type":10,"localaddr":{"ip":"","port":0},"remoteaddr":{"ip":"","port":0},"status":"","pid":0}`
if e != fmt.Sprintf("%v", v) { if e != fmt.Sprintf("%v", v) {
t.Errorf("NetConnectionStat string is invalid: %v", v) t.Errorf("NetConnectionStat string is invalid: %v", v)
} }

Loading…
Cancel
Save