mirror of
https://github.com/logos-messaging/go-discover.git
synced 2026-01-09 08:23:11 +00:00
test: over 300 bytes enr
This commit is contained in:
parent
3eaa4df3b6
commit
4072737cd5
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user