mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-07-27 13:49:57 +00:00
TUN-2921: Rework address selection logic to avoid corner cases
This commit is contained in:
@@ -58,6 +58,7 @@ func TestRegions_Giveback_Region1(t *testing.T) {
|
||||
rs.GiveBack(&addr0)
|
||||
assert.Equal(t, &addr0, rs.GetUnusedAddr(nil, 3))
|
||||
}
|
||||
|
||||
func TestRegions_Giveback_Region2(t *testing.T) {
|
||||
rs := makeRegions()
|
||||
rs.region1.Use(&addr0, 0)
|
||||
|
Reference in New Issue
Block a user