mirror of
https://github.com/safing/portmaster
synced 2025-09-09 22:04:56 +00:00
Fix and improve tests
This commit is contained in:
parent
ab89a326c5
commit
9f72660e8e
4 changed files with 29 additions and 18 deletions
11
netenv/environment_linux_test.go
Normal file
11
netenv/environment_linux_test.go
Normal file
|
@ -0,0 +1,11 @@
|
|||
package netenv
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestLinuxEnvironment(t *testing.T) {
|
||||
nameserversTest, err := getNameserversFromResolvconf()
|
||||
if err != nil {
|
||||
t.Errorf("failed to get namerservers from resolvconf: %s", err)
|
||||
}
|
||||
t.Logf("nameservers from resolvconf: %+v", nameserversTest)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue