mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-15 10:16:52 +01:00
Stop a deleted handshake's retry timers from driving the handshake that replaced it
This commit is contained in:
1 parent
5bf666dd90
commit
e5ac0cc5e2
4 files changed
+93
-21
No files matched your search
+3
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user