Alina Sudakov 48aa2f4eef Fix race conditions in DHCP test
The test named "correctly handles multiple DELs for the same container" in the ipam/dhcp package experiences race conditions when multiple goroutines concurrently access and modify the Args struct (of type CmdArgs).
To address these issues, a copy of the CmdArgs struct is now created in each function to eliminate data races.

Also, the test-linux.sh and test-windows.sh scripts have been updated to include the '-race' flag, enabling race detection during testing. This change helps prevent future race conditions by activating the Go race detector.

Signed-off-by: Alina Sudakov <asudakov@redhat.com>
2023-06-14 17:57:46 +03:00
..
2023-03-01 06:55:40 +00:00
2023-03-24 21:04:39 +01:00
2023-06-14 17:57:46 +03:00
2023-03-24 21:04:39 +01:00
2023-03-24 21:04:39 +01:00
2023-03-01 06:55:40 +00:00
2023-03-01 06:55:40 +00:00

This document has moved to the containernetworking/cni.dev repo.

You can find it online here: https://cni.dev/plugins/current/ipam/dhcp/