test: over 300 bytes enr

This commit is contained in:
Igor Sirotin 2025-11-25 21:33:18 +00:00
parent 3eaa4df3b6
commit 4072737cd5
No known key found for this signature in database
GPG Key ID: 0EABBCB40CB9AD4A

View File

@ -641,6 +641,12 @@ func TestUDPv5_LocalNode(t *testing.T) {
testVal := [4]byte{'A', 'B', 'C', 'D'}
localNd.Set(enr.WithEntry("testing", &testVal))
for i := 0; i < 10; i++ {
name := fmt.Sprintf("testing-%d", i)
value := "12345678901234567890"
localNd.Set(enr.WithEntry(name, value))
}
// retrieve the value from self to make sure it matches.
outputVal := [4]byte{}
if err := node.Self().Load(enr.WithEntry("testing", &outputVal)); err != nil {