1
2
mirror of https://github.com/yunginnanet/Rate5 synced 2024-06-27 01:18:37 +00:00

Style[tests]: adjust test log output

This commit is contained in:
kayos@tcp.direct 2024-01-08 00:23:41 -08:00
parent d30d173462
commit 99403c33cc
Signed by: kayos
GPG Key ID: 4B841471B4BEE979

@ -282,7 +282,7 @@ func Test_Speedometer(t *testing.T) {
}
})
t.Run("SynSynAckAck", func(t *testing.T) {
t.Run("limited TCP bandwidth", func(t *testing.T) {
t.Parallel()
var (
server net.Listener
@ -348,7 +348,7 @@ func Test_Speedometer(t *testing.T) {
case n != len(buf):
t.Errorf("Failed to write all bytes: %d", n)
default:
t.Logf("Wrote %d bytes", n)
t.Logf("Wrote %d bytes (rate: %v/bps)", n, speedometer.Rate())
}
}
}()