mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Avoid wrong error messages
Stop showing wrong timeout values in packetimpact test error messages. e.g. "got frames ... want ... during -123ms" PiperOrigin-RevId: 345144938
This commit is contained in:
@@ -598,7 +598,7 @@ func (conn *Connection) ExpectFrame(t *testing.T, layers Layers, timeout time.Du
|
||||
var errs error
|
||||
for {
|
||||
var gotLayers Layers
|
||||
if timeout = time.Until(deadline); timeout > 0 {
|
||||
if timeout := time.Until(deadline); timeout > 0 {
|
||||
gotLayers = conn.recvFrame(t, timeout)
|
||||
}
|
||||
if gotLayers == nil {
|
||||
|
||||
Reference in New Issue
Block a user