Fix CodeRabbit review issues from IPv6 overlay PR (#5839)

This commit is contained in:
Viktor Liu
2026-04-10 09:12:35 +08:00
committed by GitHub
parent f484835292
commit 6e05a2ebe9
7 changed files with 44 additions and 17 deletions

View File

@@ -8,6 +8,7 @@ import (
"time"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func TestAddPeer(t *testing.T) {
@@ -46,7 +47,7 @@ func TestUpdatePeerState(t *testing.T) {
ip := "10.10.10.10"
fqdn := "peer-a.netbird.local"
status := NewRecorder("https://mgm")
_ = status.AddPeer(key, fqdn, ip, "")
require.NoError(t, status.AddPeer(key, fqdn, ip, ""))
peerState := State{
PubKey: key,