mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-12-19 06:11:35 +03:00
27f4f05273
Merge in DNS/adguard-home from imp-tests to master Squashed commit of the following: commit 6171420068d66808f069f280a81e0c60e61e5ce3 Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Thu Mar 25 17:43:36 2021 +0300 aghnet: imp test msgs commit ed2880ff03ab0e41a77f07aad2caf13bf5f4bd9f Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Thu Mar 25 17:39:44 2021 +0300 all: imp some tests
17 lines
416 B
Go
17 lines
416 B
Go
package aghnet
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestGetValidNetInterfacesForWeb(t *testing.T) {
|
|
ifaces, err := GetValidNetInterfacesForWeb()
|
|
require.NoErrorf(t, err, "cannot get net interfaces: %s", err)
|
|
require.NotEmpty(t, ifaces, "no net interfaces found")
|
|
for _, iface := range ifaces {
|
|
require.NotEmptyf(t, iface.Addresses, "no addresses found for %s", iface.Name)
|
|
}
|
|
}
|