go-waku/waku/v2/dnsdisc/enr_test.go

19 lines
472 B
Go
Raw Normal View History

2021-11-16 14:22:01 +00:00
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) {
2022-09-26 22:03:18 +00:00
url := "enrtree://AOGECG2SPND25EEFMAJ5WF3KSGJNSGV356DSTL2YVLLZWIV6SAYBM@test.waku.nodes.status.im"
nodes, err := RetrieveNodes(context.Background(), url)
require.NoError(t, err)
require.NotEmpty(t, nodes)
}