Stop a deleted handshake's retry timers from driving the handshake that replaced it

This commit is contained in:
JackDoan committed 2026-10-16 16:14:53 -05:00
1 parent 5bf666dd90
commit e5ac0cc5e2
4 files changed
+93 -21

No files matched your search

+3 -1
View File
@@ -7,6 +7,7 @@ import (
"github.com/slackhq/nebula/firewall"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func TestNewTimerWheel(t *testing.T) {
@@ -150,7 +151,8 @@ func TestTimerWheel_Purge(t *testing.T) {
assert.Equal(t, 4, tw.itemsCached)
ci := tw.itemCache
for range 4 {
assert.NotNil(t, ci)
require.NotNil(t, ci)
assert.Zero(t, ci.Item)
ci = ci.Next
}
assert.Nil(t, ci)