diff options
author | Tamir Duberstein <tamird@google.com> | 2020-12-10 12:25:43 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-12-10 12:27:46 -0800 |
commit | 205015687bb5ca09633646088ba6db72ce6076dd (patch) | |
tree | 12c01dd770214392a8907932c265bac8ec527c71 /test/packetimpact/testbench/connections.go | |
parent | a177bfdbc424af29289a98489a20cf428cc4d1bb (diff) |
Correctly align non-matching layers
PiperOrigin-RevId: 346840424
Diffstat (limited to 'test/packetimpact/testbench/connections.go')
-rw-r--r-- | test/packetimpact/testbench/connections.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/packetimpact/testbench/connections.go b/test/packetimpact/testbench/connections.go index db9fa8253..576577310 100644 --- a/test/packetimpact/testbench/connections.go +++ b/test/packetimpact/testbench/connections.go @@ -603,9 +603,9 @@ func (conn *Connection) ExpectFrame(t *testing.T, layers Layers, timeout time.Du } if gotLayers == nil { if errs == nil { - return nil, fmt.Errorf("got no frames matching %v during %s", layers, timeout) + return nil, fmt.Errorf("got no frames matching %s during %s", layers, timeout) } - return nil, fmt.Errorf("got frames %w want %v during %s", errs, layers, timeout) + return nil, fmt.Errorf("got frames:\n%w want %s during %s", errs, layers, timeout) } if conn.match(layers, gotLayers) { for i, s := range conn.layerStates { |