c2a087a9f7
portallocator.PortAllocator holds persistent state on port allocations in the network namespace. It normal operation it is used as a singleton, which is a problem in unit tests as every test runs in a clean network namespace. The singleton "default" PortAllocator remembers all the port allocations made in other tests---in other network namespaces---and can result in spurious test failures. Refactor the bridge driver so that tests can construct driver instances with unique PortAllocators. Signed-off-by: Cory Snider <csnider@mirantis.com> |
||
---|---|---|
.. | ||
portallocator.go | ||
portallocator_freebsd.go | ||
portallocator_linux.go | ||
portallocator_test.go | ||
portallocator_unix.go | ||
portallocator_windows.go |