aboutsummaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorsotech117 <michael_foiani@brown.edu>2023-10-09 12:59:13 -0400
committersotech117 <michael_foiani@brown.edu>2023-10-09 12:59:13 -0400
commit1253398ac33d51559573972149384d1019c3ec56 (patch)
treee26f9d2a7935cfe37bf34c1cead2654a3ff2f326 /pkg
parentf81bfd8b8e1c663d40bcc0f2ce9fb114a204f8d7 (diff)
fix tests
Diffstat (limited to 'pkg')
-rw-r--r--pkg/ipstack/ipstack.go9
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)
}