mirror of
https://github.com/AlexxIT/go2rtc.git
synced 2025-10-06 00:37:00 +08:00
17 lines
371 B
Go
17 lines
371 B
Go
package mdns
|
|
|
|
import (
|
|
"github.com/stretchr/testify/require"
|
|
"testing"
|
|
)
|
|
|
|
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)
|
|
}
|