[net][darwin] Fix tests with mismatched types

This commit is contained in:
Lomanic 2020-11-08 00:09:48 +01:00
parent 7f0ba43398
commit 64e16cc8c3
2 changed files with 12 additions and 12 deletions

View File

@ -40,12 +40,12 @@ func TestParseNetstatLineHeader(t *testing.T) {
func assertLoopbackStat(t *testing.T, err error, stat *IOCountersStat) {
assert.NoError(t, err)
assert.Equal(t, 869107, stat.PacketsRecv)
assert.Equal(t, 0, stat.Errin)
assert.Equal(t, 169411755, stat.BytesRecv)
assert.Equal(t, 869108, stat.PacketsSent)
assert.Equal(t, 1, stat.Errout)
assert.Equal(t, 169411756, stat.BytesSent)
assert.Equal(t, uint64(869107), stat.PacketsRecv)
assert.Equal(t, uint64(0), stat.Errin)
assert.Equal(t, uint64(169411755), stat.BytesRecv)
assert.Equal(t, uint64(869108), stat.PacketsSent)
assert.Equal(t, uint64(1), stat.Errout)
assert.Equal(t, uint64(169411756), stat.BytesSent)
}
func TestParseNetstatLineLink(t *testing.T) {

View File

@ -40,12 +40,12 @@ func TestParseNetstatLineHeader(t *testing.T) {
func assertLoopbackStat(t *testing.T, err error, stat *IOCountersStat) {
assert.NoError(t, err)
assert.Equal(t, 869107, stat.PacketsRecv)
assert.Equal(t, 0, stat.Errin)
assert.Equal(t, 169411755, stat.BytesRecv)
assert.Equal(t, 869108, stat.PacketsSent)
assert.Equal(t, 1, stat.Errout)
assert.Equal(t, 169411756, stat.BytesSent)
assert.Equal(t, uint64(869107), stat.PacketsRecv)
assert.Equal(t, uint64(0), stat.Errin)
assert.Equal(t, uint64(169411755), stat.BytesRecv)
assert.Equal(t, uint64(869108), stat.PacketsSent)
assert.Equal(t, uint64(1), stat.Errout)
assert.Equal(t, uint64(169411756), stat.BytesSent)
}
func TestParseNetstatLineLink(t *testing.T) {