When packets are not received, they aren't received on $host1_if, so the message talking about the second host not receiving them is incorrect. Fix it.
Unified · Split
| @@ -1251,7 +1251,7 @@ learning_test() · 1250 unmodified lines | ||
| 1251 | 1251 | tc -j -s filter show dev $host1_if ingress \ |
| 1252 | 1252 | | jq -e ".[] | select(.options.handle == 101) \ |
| 1253 | 1253 | | select(.options.actions[0].stats.packets == 1)" &> /dev/null |
| 1254 | − check_fail $? "Packet reached second host when should not" | |
| 1254 | + check_fail $? "Packet reached first host when should not" | |
| 1255 | 1255 | |
| 1256 | 1256 | $MZ $host1_if -c 1 -p 64 -a $mac -t ip -q |
| 1257 | 1257 | sleep 1 |