NetworkManager/src/ndisc
Thomas Haller 838777a891
ndisc/tests: fix assertion in "test-ndisc-fake.c"
First I wanted to fix

  test:ERROR:../src/ndisc/tests/test-ndisc-fake.c:373:test_preference_changed_cb: assertion failed (_a->timestamp == (data->timestamp1 + 3)): (9 == 10)

but that leads to a different failure:

  test:ERROR:../src/ndisc/tests/test-ndisc-fake.c:375:test_preference_changed_cb: assertion failed (_a->lifetime == (9)): (10 == 9)

Instead, the start and end times must match exact (in their duration),
we only allow them to be shifted by up to one second.

Fixes: 8209095ee1 ('ndisc/tests: relax the assertion in "test-ndisc-fake.c"')
(cherry picked from commit b2f03544a7)
2020-07-03 20:41:43 +02:00
..
tests ndisc/tests: fix assertion in "test-ndisc-fake.c" 2020-07-03 20:41:43 +02:00
nm-fake-ndisc.c all: drop explicit casts from _GET_PRIVATE() macro calls 2020-02-14 11:04:46 +01:00
nm-fake-ndisc.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-lndp-ndisc.c Revert "IPv6 SLAAC: Clamp received PIO and RIO Lifetime Values" 2020-06-15 08:00:54 +02:00
nm-lndp-ndisc.h ndisc: implement "ipv6.ra-timeout" property 2020-02-17 14:43:13 +01:00
nm-ndisc-private.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nm-ndisc.c Revert "IPv6 SLAAC: Honor small PIO Valid Lifetimes" 2020-06-15 07:59:50 +02:00
nm-ndisc.h ndisc: implement "ipv6.ra-timeout" property 2020-02-17 14:43:13 +01:00