diff options
Diffstat (limited to 'tests/e2e/vulnerability_test.go')
| -rw-r--r-- | tests/e2e/vulnerability_test.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/e2e/vulnerability_test.go b/tests/e2e/vulnerability_test.go index 8de38a3..26536fe 100644 --- a/tests/e2e/vulnerability_test.go +++ b/tests/e2e/vulnerability_test.go @@ -56,10 +56,7 @@ func TestDNSLeak(t *testing.T) { t.Skip("Skipping DNS leak test in short mode") } - binaryPath, err := GetBinaryPath() - if err != nil { - t.Skipf("Skipping test: %v", err) - } + binaryPath := EnsureBinary(t) // 1. Setup a profile with a fake, unreachable DNS server. tmpConfigDir := t.TempDir() @@ -83,7 +80,7 @@ PublicKey = 0000000000000000000000000000000000000000000000000000000000000000 AllowedIPs = 0.0.0.0/0 Endpoint = 1.1.1.1:51820 ` - err = os.WriteFile(profilePath, []byte(conf), 0644) + err := os.WriteFile(profilePath, []byte(conf), 0644) if err != nil { t.Fatal(err) } |
