2021-11-16 14:22:01 +00:00
|
|
|
package dnsdisc
|
2021-09-27 17:52:56 +00:00
|
|
|
|
|
|
|
import (
|
2021-10-01 10:32:15 +00:00
|
|
|
"context"
|
2021-09-27 17:52:56 +00:00
|
|
|
"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) {
|
2023-09-28 12:34:30 +00:00
|
|
|
url := "enrtree://AO47IDOLBKH72HIZZOXQP6NMRESAN7CHYWIBNXDXWRJRZWLODKII6@test.wakuv2.nodes.status.im"
|
2021-09-27 17:52:56 +00:00
|
|
|
|
2021-10-01 10:32:15 +00:00
|
|
|
nodes, err := RetrieveNodes(context.Background(), url)
|
2021-09-27 17:52:56 +00:00
|
|
|
require.NoError(t, err)
|
|
|
|
require.NotEmpty(t, nodes)
|
|
|
|
}
|