From 1253398ac33d51559573972149384d1019c3ec56 Mon Sep 17 00:00:00 2001 From: sotech117 Date: Mon, 9 Oct 2023 12:59:13 -0400 Subject: fix tests --- pkg/ipstack/ipstack.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkg/ipstack/ipstack.go b/pkg/ipstack/ipstack.go index 446bbff..5546e32 100644 --- a/pkg/ipstack/ipstack.go +++ b/pkg/ipstack/ipstack.go @@ -388,4 +388,13 @@ func CleanUp() { n.SendSocket.Close() } } + + // delete all the neighbors + myNeighbors = make(map[string][]*Neighbor) + // delete tall the interfaces + myInterfaces = nil + // delete the routing table + routingTable = make(map[netip.Prefix]Hop) + + time.Sleep(5 * time.Millisecond) } -- cgit v1.2.3-70-g09d2