diff options
author | sotech117 <michael_foiani@brown.edu> | 2023-10-09 12:59:13 -0400 |
---|---|---|
committer | sotech117 <michael_foiani@brown.edu> | 2023-10-09 12:59:13 -0400 |
commit | 1253398ac33d51559573972149384d1019c3ec56 (patch) | |
tree | e26f9d2a7935cfe37bf34c1cead2654a3ff2f326 | |
parent | f81bfd8b8e1c663d40bcc0f2ce9fb114a204f8d7 (diff) |
fix tests
-rw-r--r-- | pkg/ipstack/ipstack.go | 9 |
1 files changed, 9 insertions, 0 deletions
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) } |