mirror of
https://github.com/AlexxIT/go2rtc.git
synced 2025-09-26 20:31:11 +08:00
18 lines
372 B
Go
18 lines
372 B
Go
package mdns
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestDiscovery(t *testing.T) {
|
|
onentry := func(entry *ServiceEntry) bool {
|
|
return true
|
|
}
|
|
err := Discovery(ServiceHAP, onentry)
|
|
//err := Discovery("_ewelink._tcp.local.", time.Second, onentry)
|
|
// err := Discovery("_googlecast._tcp.local.", time.Second, onentry)
|
|
require.Nil(t, err)
|
|
}
|