Fix all open go lint and vet issues
This commit is contained in:
parent
5289ffb270
commit
c703435790
37 changed files with 136 additions and 129 deletions
|
|
@ -30,11 +30,11 @@ func TestTCPStat(t *testing.T) {
|
|||
t.Fatal(err)
|
||||
}
|
||||
|
||||
if want, got := 1, int(tcpStats[TCP_ESTABLISHED]); want != got {
|
||||
if want, got := 1, int(tcpStats[tcpEstablished]); want != got {
|
||||
t.Errorf("want tcpstat number of established state %d, got %d", want, got)
|
||||
}
|
||||
|
||||
if want, got := 1, int(tcpStats[TCP_LISTEN]); want != got {
|
||||
if want, got := 1, int(tcpStats[tcpListen]); want != got {
|
||||
t.Errorf("want tcpstat number of listen state %d, got %d", want, got)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue