tb: axis_mii_tx: Test underflow rather than err with collision
If we ever see an error, we shouldn't retry if we get a collision at the same time, as we will just have to jam next time. Test for this case instead. Signed-off-by: Sean Anderson <seanga2@gmail.com>
This commit is contained in:
parent
a3ae038f4f
commit
4746b3b6cd
|
@ -230,7 +230,7 @@ async def test_underflow(mac):
|
|||
await underflow(mac, send, status)
|
||||
|
||||
# Underflow with collision
|
||||
send, status = await start(mac, [*range(x), None])
|
||||
send, status = await start(mac, [*range(x), None], last_extra=(12 + 8 + x) * 10)
|
||||
await restart(mac, (8 + x) * BYTE_TIME_NS - 1)
|
||||
if x <= 56:
|
||||
await underflow(mac, send, status)
|
||||
|
|
Loading…
Reference in New Issue