From 35fcdb4681ae197c3a2a6926e639fd3c9c31bae2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Blin?=
 <sebastien.blin@savoirfairelinux.com>
Date: Thu, 4 May 2023 11:01:05 -0400
Subject: [PATCH] ut_routing_table: fix testMobileNodeAnnouncement

shutdown is not immediate, so the assert was failing. Waiting a bit
that the shutdown finishes fix the test.

Change-Id: Iee88eecd6a78f9115ac057b6321fb032d5feb911
---
 test/unitTest/swarm/routing_table.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/unitTest/swarm/routing_table.cpp b/test/unitTest/swarm/routing_table.cpp
index 57f1195e65..0c0d9cee7a 100644
--- a/test/unitTest/swarm/routing_table.cpp
+++ b/test/unitTest/swarm/routing_table.cpp
@@ -898,6 +898,7 @@ RoutingTableTest::testMobileNodeAnnouncement()
         rt1.hasNode(NodeId("41a05179e4b3e42c3409b10280bb448d5bbd5ef64784b997d2d1663457bb6ba8")));
 
     sm2->shutdown();
+    sleep(5);
 
     auto mb1 = rt1.getMobileNodes();
 
-- 
GitLab