diff options
author | Christian Franke <chris@opensourcerouting.org> | 2017-10-02 16:01:58 +0200 |
---|---|---|
committer | Christian Franke <chris@opensourcerouting.org> | 2017-10-02 16:03:11 +0200 |
commit | 60d3914270ff0ad3de8c6c08cec8ca60f18cf84a (patch) | |
tree | 5276fff552c3d3a542ba21d961575d4bd19007c7 /tests | |
parent | Merge pull request #1242 from donaldsharp/eigrp_tm (diff) | |
download | frr-60d3914270ff0ad3de8c6c08cec8ca60f18cf84a.tar.xz frr-60d3914270ff0ad3de8c6c08cec8ca60f18cf84a.zip |
isisd: fix vertex queue comparator
While vertizes should be strictly ordered on insertion, deletion
will of course encouter equality.
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/isisd/test_isis_vertex_queue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/isisd/test_isis_vertex_queue.c b/tests/isisd/test_isis_vertex_queue.c index 50436387b..674482cd1 100644 --- a/tests/isisd/test_isis_vertex_queue.c +++ b/tests/isisd/test_isis_vertex_queue.c @@ -89,7 +89,7 @@ static void test_ordered(void) assert(isis_vertex_queue_pop(&q) == vertices[1]); assert(isis_find_vertex(&q, vertices[1]->N.id, vertices[1]->type) == NULL); - assert(isis_vertex_queue_pop(&q) == vertices[4]); + isis_vertex_queue_delete(&q, vertices[4]); assert(isis_find_vertex(&q, vertices[4]->N.id, vertices[4]->type) == NULL); assert(isis_vertex_queue_count(&q) == 0); |