go-waku/waku/v2/dnsdisc/enr_test.go
Richard Ramos 11d1f8fb0d
feat: result aggregation in resume and enforce max page size (#183)
* feat: result aggregation in resume and enforce max page size
* feat: add WithLogger option to wakunode (#184)
* fix: rebase issues
2022-01-18 14:17:06 -04:00

19 lines
472 B
Go

package dnsdisc
import (
"context"
"testing"
"github.com/stretchr/testify/require"
)
// TestRetrieveNodes uses a live connection, so it could be
// flaky, it should though pay for itself and should be fairly stable
func TestRetrieveNodes(t *testing.T) {
url := "enrtree://AOFTICU2XWDULNLZGRMQS4RIZPAZEHYMV4FYHAPW563HNRAOERP7C@test.waku.nodes.status.im"
nodes, err := RetrieveNodes(context.Background(), url)
require.NoError(t, err)
require.NotEmpty(t, nodes)
}