mirror of
https://github.com/moby/moby.git
synced 2026-07-25 08:47:01 +00:00
TestCreateParallel, which was ostensibly added as a regression test for race conditions inside the bridge driver, contains a race condition. The getIPv4Data() calls race the network configuration and so will sometimes see the existing address assignments return IP address ranges which do not conflict with them. While normally a good thing, the test asserts that exactly one of the 100 networks is successfully created. Pass the same IPAM data when attempting to create every network to ensure that the address ranges conflict. Signed-off-by: Cory Snider <csnider@mirantis.com>