net/announce: Expand test for stopping self announce
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 20 Jun 2019 18:47:06 +0000 (19:47 +0100)
committerJason Wang <jasowang@redhat.com>
Tue, 2 Jul 2019 02:21:07 +0000 (10:21 +0800)
commitaa9c6fa757e1ea4c109eb5cf38d1bdac6e1a3650
tree73853d8025be01971bf6c8f74cca5e6a67965747
parentc6644548c7f7b0e312ceea1440c2c6921f10e676
net/announce: Expand test for stopping self announce

Expand self-announce test to check we can stop an announce timer.
We set it up to send 300 packets, but after we receive
the first one we tell it to stop.

We error if:
   a) We receive more than 30 of the packets
   b) We're still receiving packets after a lot longer than the
      30 seconds should have arrived

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
tests/virtio-net-test.c